From 6728314406ca370b939ff920d42c7ce9bd9243e9 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 4 Mar 2008 03:52:08 +0000 Subject: [PATCH] cleaned up a rule in disconnect_one_peer --- src/policy.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/policy.cpp b/src/policy.cpp index 16c81a149..d5b331572 100755 --- a/src/policy.cpp +++ b/src/policy.cpp @@ -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;