* Fixed a bug that cause the hash checker not to start.

* Added "base_path" and "base_filename" types to the
"create/delete_link" command.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@851 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-01-22 14:45:18 +00:00
parent 81921ba9a4
commit 5a9fa2fdcd
3 changed files with 45 additions and 14 deletions
+11 -7
View File
@@ -494,7 +494,7 @@ Manager::receive_hashing_changed() {
// something else when failed.
for (View::iterator itr = m_hashingView->begin_visible(), last = m_hashingView->end_visible(); itr != last; ++itr) {
if ((*itr)->is_hash_checked())
throw torrent::internal_error("core::Manager::receive_hashing_changed() hash already checked or checking.");
throw torrent::internal_error("core::Manager::receive_hashing_changed() (*itr)->is_hash_checked().");
if ((*itr)->is_hash_checking()) {
foundHashing = true;
@@ -522,17 +522,21 @@ Manager::receive_hashing_changed() {
// Need to clean up the below.
if (tryQuick) {
if (!(*itr)->download()->hash_check(true))
// Temporary hack.
(*itr)->download()->hash_stop();
if ((*itr)->download()->hash_check(true))
continue;
// Make sure we don't repeat the quick hashing.
(*itr)->set_value("hashing", Download::variable_hashing_rehash);
(*itr)->download()->hash_stop();
} else {
(*itr)->download()->hash_check(false);
if (foundHashing) {
(*itr)->set_value("hashing", Download::variable_hashing_rehash);
continue;
}
}
(*itr)->download()->hash_check(false);
foundHashing = true;
} catch (torrent::local_error& e) {
if (tryQuick) {
// Make sure we don't repeat the quick hashing.