make force recheck a bit more robust by initializing the progress state immediately

This commit is contained in:
arvidn 2016-02-20 15:53:43 -05:00
parent 176d57ab8c
commit 3231aa4c9d
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();