fixed buf with torrents having peers despite being paused .. this is

from upstream svn
This commit is contained in:
Andrew Resch 2007-06-09 03:38:31 +00:00
parent 810f26395f
commit 9bd479160f
1 changed files with 2 additions and 1 deletions

View File

@ -1806,7 +1806,8 @@ namespace libtorrent
bool torrent::want_more_peers() const bool torrent::want_more_peers() const
{ {
return int(m_connections.size()) < m_connections_quota.given 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() void torrent::disconnect_all()