mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 13:12:32 +00:00
* 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:
+11
-7
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user