From b7ae64fd1f6b883342e76d25b48534c92c8d6ac0 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 13 Oct 2013 18:50:07 +0000 Subject: [PATCH] don't try to fill send buffers after the torrent has started to shut down --- src/peer_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index b9a961bb4..8944b5ef1 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -4512,7 +4512,7 @@ namespace libtorrent bool sent_a_piece = false; boost::shared_ptr 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 // otherwise there will be no end to how large it will be!