cleaned up a rule in disconnect_one_peer

This commit is contained in:
Arvid Norberg 2008-03-04 03:52:08 +00:00
parent 1402c3b266
commit 6728314406
1 changed files with 1 additions and 4 deletions

View File

@ -505,10 +505,7 @@ namespace libtorrent
= transferred_amount / (connected_time_in_seconds + 1);
// prefer to disconnect uninteresting peers, and secondly slow peers
if (transfer_rate <= slowest_transfer_rate
|| (disconnect_peer != m_peers.end()
&& disconnect_peer->second.connection->is_interesting()
&& !c->is_interesting()))
if (transfer_rate <= slowest_transfer_rate)
{
slowest_transfer_rate = transfer_rate;
disconnect_peer = i;