restored the faster connection behavior

This commit is contained in:
Arvid Norberg 2007-05-03 01:49:14 +00:00
parent 77c141fd6d
commit 56a4b8412a
2 changed files with 3 additions and 2 deletions

View File

@ -724,8 +724,8 @@ namespace libtorrent
}
}
if (m_torrent->want_more_peers())
connect_one_peer();
while (m_torrent->want_more_peers())
if (!connect_one_peer()) break;
// ------------------------
// upload shift

View File

@ -609,6 +609,7 @@ namespace libtorrent
bind(&torrent::on_peer_name_lookup, shared_from_this(), _1, _2, i->pid)));
}
}
m_policy->pulse();
if (m_ses.m_alerts.should_post(alert::info))
{