don't try to fill send buffers after the torrent has started to shut down

This commit is contained in:
Arvid Norberg 2013-10-13 18:50:07 +00:00
parent fb60de086b
commit b7ae64fd1f
1 changed files with 1 additions and 1 deletions

View File

@ -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!