fix failed invariant check by pausing torrents that are just completing checking and are auto-managed earlier

This commit is contained in:
Arvid Norberg 2011-02-11 07:10:47 +00:00
parent 9efd739cf5
commit 94027cbea3
1 changed files with 4 additions and 3 deletions

View File

@ -1611,9 +1611,6 @@ namespace libtorrent
if (ret == piece_manager::need_full_check) return;
dequeue_torrent_check();
// calling pause will also trigger the auto managed
// recalculation
if (m_auto_managed) pause();
files_checked();
}
@ -5248,6 +5245,10 @@ namespace libtorrent
get_handle()));
}
// calling pause will also trigger the auto managed
// recalculation
if (m_auto_managed) pause();
// if this is an auto managed torrent, force a recalculation
// of which torrents to have active
if (m_auto_managed && m_ses.m_auto_manage_time_scaler > 1)