fix smart ban assert when closing a torrent with a failing piece
This commit is contained in:
parent
6db1b54304
commit
e4269ddcce
|
@ -127,6 +127,10 @@ namespace libtorrent { namespace
|
||||||
// The piece failed the hash check. Record
|
// The piece failed the hash check. Record
|
||||||
// the CRC and origin peer of every block
|
// 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;
|
std::vector<void*> downloaders;
|
||||||
m_torrent.picker().get_downloaders(downloaders, p);
|
m_torrent.picker().get_downloaders(downloaders, p);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue