From 9be3f14dd71ce9914e7326b8b8e34d96d3d61f4e Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 3 May 2007 17:12:24 +0000 Subject: [PATCH] fixed bug in recent connection queue changes --- src/torrent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 906401a4d..1f2353587 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -2048,7 +2048,8 @@ namespace libtorrent bool torrent::want_more_peers() const { return int(m_connections.size()) < m_connections_quota.given - && int(m_ses.m_half_open.size()) < m_ses.m_half_open_limit; + && (int(m_ses.m_half_open.size()) < m_ses.m_half_open_limit + || m_ses.m_half_open_limit <= 0); }