fix queue position for force_rechecking a torrent that is not auto-managed

This commit is contained in:
arvidn 2020-05-10 12:58:44 +02:00 committed by Arvid Norberg
parent 232b2e0758
commit e5e2b48122
3 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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.

View File

@ -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();