fix smart ban assert when closing a torrent with a failing piece

This commit is contained in:
Arvid Norberg 2008-06-22 20:30:43 +00:00
parent 6db1b54304
commit e4269ddcce
1 changed files with 4 additions and 0 deletions

View File

@ -127,6 +127,10 @@ namespace libtorrent { namespace
// The piece failed the hash check. Record
// the CRC and origin peer of every block
// if the torrent is aborted, no point in starting
// a bunch of read operations on it
if (m_torrent.is_aborted()) return;
std::vector<void*> downloaders;
m_torrent.picker().get_downloaders(downloaders, p);