Merge pull request #486 from arvidn/force-recheck-1.1

make force recheck a bit more robust
This commit is contained in:
Arvid Norberg 2016-02-20 19:53:56 -05:00
commit 5d18800e04
1 changed files with 4 additions and 0 deletions

View File

@ -2659,6 +2659,10 @@ namespace libtorrent
}
else
{
m_progress_ppm = 0;
m_checking_piece = 0;
m_num_checked_pieces = 0;
set_state(torrent_status::checking_files);
if (m_auto_managed) pause(true);
if (should_check_files()) start_checking();