1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

(trunk libT) fix a crasher introduced yesterday in r12248

This commit is contained in:
Jordan Lee 2011-03-29 21:10:20 +00:00
parent 72c55fcdd8
commit 3e2aee0c02

View file

@ -421,7 +421,6 @@ tr_peerDestruct( tr_torrent * tor, tr_peer * peer )
{ {
assert( peer != NULL ); assert( peer != NULL );
if( tor->torrentPeers->isRunning )
peerDeclinedAllRequests( tor->torrentPeers, peer ); peerDeclinedAllRequests( tor->torrentPeers, peer );
if( peer->msgs != NULL ) if( peer->msgs != NULL )
@ -1471,9 +1470,9 @@ refillUpkeep( int foo UNUSED, short bar UNUSED, void * vmgr )
{ {
int keepCount = 0; int keepCount = 0;
int cancelCount = 0; int cancelCount = 0;
struct block_request * cancel = tr_new( struct block_request, n );
const struct block_request * it; const struct block_request * it;
const struct block_request * end; const struct block_request * end;
struct block_request * cancel = tr_new( struct block_request, n );
for( it=t->requests, end=it+n; it!=end; ++it ) for( it=t->requests, end=it+n; it!=end; ++it )
{ {