From 9bd479160f4a6a215cbe884951d95ccefbc4a929 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 9 Jun 2007 03:38:31 +0000 Subject: [PATCH] fixed buf with torrents having peers despite being paused .. this is from upstream svn --- libtorrent/src/torrent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libtorrent/src/torrent.cpp b/libtorrent/src/torrent.cpp index 6678a756e..f50ad0b01 100755 --- a/libtorrent/src/torrent.cpp +++ b/libtorrent/src/torrent.cpp @@ -1806,7 +1806,8 @@ namespace libtorrent bool torrent::want_more_peers() const { return int(m_connections.size()) < m_connections_quota.given - && m_ses.m_half_open.free_slots(); + && m_ses.m_half_open.free_slots() + && !m_paused; } void torrent::disconnect_all()