fix recent simplification of connection attempt distribution

This commit is contained in:
Arvid Norberg 2012-03-06 07:34:02 +00:00
parent ea59a9be22
commit 5897235f51
1 changed files with 1 additions and 0 deletions

View File

@ -3432,6 +3432,7 @@ namespace aux {
m_settings.connections_limit = num_connections();
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 (max_connections == 0) break;
if (num_connections() >= m_settings.connections_limit) break;