mirror of
https://github.com/transmission/transmission
synced 2025-03-09 13:50:00 +00:00
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:
parent
ff4a64aba5
commit
cda886028d
1 changed files with 7 additions and 0 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue