From 3231aa4c9d9e4a7c9f4f0deb585387a9d7930cd6 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sat, 20 Feb 2016 15:53:43 -0500 Subject: [PATCH] make force recheck a bit more robust by initializing the progress state immediately --- src/torrent.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/torrent.cpp b/src/torrent.cpp index 029efe41b..41c4e4595 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -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();