* Cleaned up hash checking, and allow resuming stopped checks.

* Fixed setting of TOS so it doesn't always set it to throughput.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@827 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-12-18 08:24:01 +00:00
parent d8e5a59b92
commit cc44fb175d
3 changed files with 88 additions and 39 deletions
+3 -1
View File
@@ -503,7 +503,9 @@ Manager::receive_hashing_changed() {
if ((*itr)->is_hash_checked())
throw torrent::internal_error("core::Manager::receive_hashing_changed() hash already checked or checking.");
if ((*itr)->is_hash_failed() || (*itr)->variable()->get_value("hashing") != Download::variable_hashing_initial)
if ((*itr)->is_hash_failed() ||
(*itr)->variable()->get_value("hashing") != Download::variable_hashing_initial ||
(*itr)->download()->chunks_hashed() != 0)
continue;
m_downloadList->open_throw(*itr);