diff --git a/ChangeLog b/ChangeLog index 1cbfdbc3b..d2c5b8354 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ + * fix queue position for force_rechecking a torrent that is not auto-managed * improve rate-based choker documentation, and minor tweak * undeprecate upnp_ignore_nonrouters (but refering to devices on our subnet) * increase default tracker timeout diff --git a/include/libtorrent/torrent_handle.hpp b/include/libtorrent/torrent_handle.hpp index 5ce8cebc9..8dded1092 100644 --- a/include/libtorrent/torrent_handle.hpp +++ b/include/libtorrent/torrent_handle.hpp @@ -608,6 +608,8 @@ namespace aux { // checking queue, and will be checked (all the files will be read and // compared to the piece hashes). Once the check is complete, the torrent // will start connecting to peers again, as normal. + // The torrent will be placed last in queue, i.e. its queue position + // will be the highest of all torrents in the session. void force_recheck() const; // the disk cache will be flushed before creating the resume data. diff --git a/src/torrent.cpp b/src/torrent.cpp index 08b752165..d75a7936d 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -2354,8 +2354,7 @@ bool is_downloading_state(int const st) update_want_tick(); set_state(torrent_status::checking_resume_data); - if (m_auto_managed && !is_finished()) - set_queue_position(last_pos); + set_queue_position(last_pos); TORRENT_ASSERT(m_outstanding_check_files == false); m_add_torrent_params.reset();