diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index f196c281d..6663b9a5e 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -1532,7 +1532,7 @@ getWeightedRate( const tr_peer * peer, int clientIsSeed ) static void rechoke( Torrent * t ) { - int i, n, peerCount, size, unchokedInterested; + int i, peerCount, size, unchokedInterested; tr_peer ** peers = getConnectedPeers( t, &peerCount ); struct ChokeData * choke = tr_new0( struct ChokeData, peerCount ); const int clientIsSeed = tr_torrentIsSeed( t->tor ); @@ -1574,9 +1574,6 @@ rechoke( Torrent * t ) if( choke[i].isInterested ) ++unchokedInterested; } - n = i; - while( idoUnchoke = 1; t->optimistic = c->peer; tr_ptrArrayFree( randPool, NULL );