fixed bug when force-checking a torrent with partial pieces

This commit is contained in:
Arvid Norberg 2009-05-25 20:31:20 +00:00
parent 9799b96df5
commit c695729bbe
3 changed files with 4 additions and 7 deletions

View File

@ -68,6 +68,7 @@ release 0.14.4
* optimized memory usage when checking files fails * optimized memory usage when checking files fails
* fixed bug when checking a torrent twice * fixed bug when checking a torrent twice
* improved handling of out-of-memory conditions in disk I/O thread * improved handling of out-of-memory conditions in disk I/O thread
* fixed bug when force-checking a torrent with partial pieces
release 0.14.3 release 0.14.3

View File

@ -91,6 +91,9 @@ namespace libtorrent
m_reverse_cursor = int(m_piece_map.size()); m_reverse_cursor = int(m_piece_map.size());
m_cursor = 0; m_cursor = 0;
m_downloads.clear();
m_block_info.clear();
m_num_filtered += m_num_have_filtered; m_num_filtered += m_num_have_filtered;
m_num_have_filtered = 0; m_num_have_filtered = 0;
m_num_have = 0; m_num_have = 0;

View File

@ -840,13 +840,6 @@ namespace libtorrent
|| m_state == torrent_status::checking_resume_data) || m_state == torrent_status::checking_resume_data)
return; return;
if ((is_paused() && !m_auto_managed))
{
// set the queued for checking state, so that it's
// checked as soon as it's resumed or made auto managed
set_state(torrent_status::queued_for_checking);
return;
}
clear_error(); clear_error();
disconnect_all(); disconnect_all();