fixed bug in recent connection queue changes

This commit is contained in:
Arvid Norberg 2007-05-03 17:12:24 +00:00
parent 56a4b8412a
commit 9be3f14dd7
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}