fixed buf with torrents having peers despite being paused .. this is
from upstream svn
This commit is contained in:
parent
810f26395f
commit
9bd479160f
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue