cleaned up a rule in disconnect_one_peer
This commit is contained in:
parent
1402c3b266
commit
6728314406
|
@ -505,10 +505,7 @@ namespace libtorrent
|
||||||
= transferred_amount / (connected_time_in_seconds + 1);
|
= transferred_amount / (connected_time_in_seconds + 1);
|
||||||
|
|
||||||
// prefer to disconnect uninteresting peers, and secondly slow peers
|
// prefer to disconnect uninteresting peers, and secondly slow peers
|
||||||
if (transfer_rate <= slowest_transfer_rate
|
if (transfer_rate <= slowest_transfer_rate)
|
||||||
|| (disconnect_peer != m_peers.end()
|
|
||||||
&& disconnect_peer->second.connection->is_interesting()
|
|
||||||
&& !c->is_interesting()))
|
|
||||||
{
|
{
|
||||||
slowest_transfer_rate = transfer_rate;
|
slowest_transfer_rate = transfer_rate;
|
||||||
disconnect_peer = i;
|
disconnect_peer = i;
|
||||||
|
|
Loading…
Reference in New Issue