forked from premiere/premiere-libtorrent
don't try to fill send buffers after the torrent has started to shut down
This commit is contained in:
parent
fb60de086b
commit
b7ae64fd1f
|
@ -4512,7 +4512,7 @@ namespace libtorrent
|
||||||
|
|
||||||
bool sent_a_piece = false;
|
bool sent_a_piece = false;
|
||||||
boost::shared_ptr<torrent> t = m_torrent.lock();
|
boost::shared_ptr<torrent> t = m_torrent.lock();
|
||||||
if (!t) return;
|
if (!t || t->is_aborted()) return;
|
||||||
|
|
||||||
// only add new piece-chunks if the send buffer is small enough
|
// only add new piece-chunks if the send buffer is small enough
|
||||||
// otherwise there will be no end to how large it will be!
|
// otherwise there will be no end to how large it will be!
|
||||||
|
|
Loading…
Reference in New Issue