From f65c08338e8c3591b36c6cc2ec7557a2ef35b74b Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 30 May 2007 08:37:36 +0000 Subject: [PATCH] fixed bug with torrents having peers despite being paused --- src/torrent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 1d6590027..01640afb7 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -1818,7 +1818,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()