diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index 3f951acee..adf566f2c 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -1206,10 +1206,9 @@ tr_incrReplicationFromBitfield( Torrent * t, const tr_bitfield * b ) assert( n == t->pieceReplicationSize ); assert( tr_bitfieldTestFast( b, n-1 ) ); - if( tr_bitfieldTestFast( b, n-1 ) ) - for( i=0; ipieceSortState == PIECES_SORTED_BY_WEIGHT ) invalidatePieceSorting( t ); @@ -1252,10 +1251,9 @@ tr_decrReplicationFromBitset( Torrent * t, const tr_bitset * bitset ) { const tr_bitfield * const b = &bitset->bitfield; - if( tr_bitfieldTestFast( b, n-1 ) ) - for( i=0; ipieceReplication[i]; + for( i=0; ipieceReplication[i]; if( t->pieceSortState == PIECES_SORTED_BY_WEIGHT ) invalidatePieceSorting( t );