Fix peer destructor bug from ticket #270. This bug dates back to r1419 in January... I'm surprised it hasn't been reported before now.
This commit is contained in:
parent
feb85f8957
commit
d259e7b65a
|
@ -299,6 +299,7 @@ void tr_peerDestroy( tr_peer_t * peer )
|
|||
{
|
||||
r = &peer->inRequests[i];
|
||||
block = tr_block( r->index, r->begin );
|
||||
if( tor != NULL )
|
||||
tr_cpDownloaderRem( tor->completion, block );
|
||||
}
|
||||
tr_bitfieldFree( peer->bitfield );
|
||||
|
|
Loading…
Reference in New Issue