fix bug when weeding out peers from peerlists

This commit is contained in:
Arvid Norberg 2012-04-09 03:04:57 +00:00
parent 548bace889
commit 8e93d59b2c
1 changed files with 1 additions and 0 deletions

View File

@ -697,6 +697,7 @@ namespace libtorrent
if (candidate > current) --candidate; if (candidate > current) --candidate;
--m_round_robin; --m_round_robin;
erase_peer(m_peers.begin() + current); erase_peer(m_peers.begin() + current);
continue;
} }
else else
{ {