when evicting peers waiting to establish connection, evict the ones that have been trying for the longest first

This commit is contained in:
Arvid Norberg
2013-09-14 21:47:31 +00:00
parent a386d8aca0
commit 2df72d276e
3 changed files with 18 additions and 8 deletions

View File

@@ -3983,7 +3983,6 @@ namespace libtorrent
boost::shared_ptr<torrent> t = m_torrent.lock();
assert(t);
// TODO: we should probably just send a HAVE_ALL here
for (int i = 0; i < int(m_have_piece.size()); ++i)
{
if (m_have_piece[i] || !t->have_piece(i)) continue;