forked from premiere/premiere-libtorrent
fix recent simplification of connection attempt distribution
This commit is contained in:
parent
ea59a9be22
commit
5897235f51
|
@ -3432,6 +3432,7 @@ namespace aux {
|
||||||
m_settings.connections_limit = num_connections();
|
m_settings.connections_limit = num_connections();
|
||||||
if (m_settings.connections_limit < 2) m_settings.connections_limit = 2;
|
if (m_settings.connections_limit < 2) m_settings.connections_limit = 2;
|
||||||
}
|
}
|
||||||
|
if (!t.want_more_peers()) break;
|
||||||
if (free_slots <= -m_half_open.limit()) break;
|
if (free_slots <= -m_half_open.limit()) break;
|
||||||
if (max_connections == 0) break;
|
if (max_connections == 0) break;
|
||||||
if (num_connections() >= m_settings.connections_limit) break;
|
if (num_connections() >= m_settings.connections_limit) break;
|
||||||
|
|
Loading…
Reference in New Issue