forked from premiere/premiere-libtorrent
fix bug for when a torrent queued for checking was removed
This commit is contained in:
parent
2c4ee11f30
commit
8f7a3ddfe0
|
@ -1893,6 +1893,9 @@ namespace aux {
|
|||
#endif
|
||||
i->second->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);
|
||||
if (k != m_queued_for_checking.end()) m_queued_for_checking.erase(k);
|
||||
TORRENT_ASSERT(m_torrents.find(i_hash) == m_torrents.end());
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue