(trunk libT) #4215 "bug in unchoking algorithm" -- fixed.

This commit is contained in:
Jordan Lee 2011-04-29 22:39:54 +00:00
parent 9753aa6183
commit 92ad42e10c
1 changed files with 1 additions and 1 deletions

View File

@ -2891,7 +2891,7 @@ rechokeDownloads( Torrent * t )
while( n > 0 )
{
const int i = tr_cryptoWeakRandInt( n );
tr_peer * peer = tr_ptrArrayNth( &t->peers, i );
tr_peer * peer = peers[i];
if( !isPeerInteresting( t->tor, peer ) )
{