fix `HAVE' error that broke during the webseed-piece changes last week. Reported by Aloisius in http://forum.transmissionbt.com/viewtopic.php?t=5175

This commit is contained in:
Charles Kerr 2008-06-21 01:03:31 +00:00
parent ff4a64aba5
commit cda886028d
1 changed files with 7 additions and 0 deletions

View File

@ -871,6 +871,13 @@ peerCallbackFunc( void * vpeer, void * vevent, void * vt )
if( err )
gotBadPiece( t, p );
else {
int i, peerCount;
tr_peer ** peers = getConnectedPeers( t, &peerCount );
for( i=0; i<peerCount; ++i )
tr_peerMsgsHave( peers[i]->msgs, p );
tr_free( peers );
}
tr_torrentRecheckCompleteness( tor );
}