fixed bug with torrents having peers despite being paused
This commit is contained in:
parent
14a15831ef
commit
f65c08338e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue