fixed bug with torrents having peers despite being paused

This commit is contained in:
Arvid Norberg 2007-05-30 08:37:36 +00:00
parent 14a15831ef
commit f65c08338e
1 changed files with 2 additions and 1 deletions

View File

@ -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()