fix for when removing a torrent when it is in the checking state

This commit is contained in:
Arvid Norberg
2008-10-26 09:23:00 +00:00
parent 8f7a3ddfe0
commit 65c4b7ec13
2 changed files with 6 additions and 3 deletions

View File

@@ -1891,7 +1891,7 @@ namespace aux {
#ifndef NDEBUG
sha1_hash i_hash = t.torrent_file().info_hash();
#endif
i->second->set_queue_position(-1);
t.set_queue_position(-1);
m_torrents.erase(i);
std::list<boost::shared_ptr<torrent> >::iterator k
= std::find(m_queued_for_checking.begin(), m_queued_for_checking.end(), tptr);