#1302: possible fix

This commit is contained in:
Charles Kerr 2008-10-21 19:27:57 +00:00
parent 7f9d71e6ff
commit aba2849375
1 changed files with 1 additions and 2 deletions

View File

@ -2457,8 +2457,7 @@ pumpAllPeers( tr_peerMgr * mgr )
for( i = 0; i < torrentCount; ++i )
{
Torrent * t = tr_ptrArrayNth( mgr->torrents, i );
const int peerCount = tr_ptrArraySize( t->peers );
for( j = 0; j < peerCount; ++j )
for( j = 0; j < tr_ptrArraySize( t->peers ); ++j )
{
tr_peer * peer = tr_ptrArrayNth( t->peers, j );
tr_peerMsgsPulse( peer->msgs );