Changeset 2492


Ignore:
Timestamp:
Jul 25, 2007, 4:33:22 PM (15 years ago)
Author:
charles
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer.c

    r2488 r2492  
    300300        r = &peer->inRequests[i];
    301301        block = tr_block( r->index, r->begin );
    302         tr_cpDownloaderRem( tor->completion, block );
     302        if( tor != NULL )
     303            tr_cpDownloaderRem( tor->completion, block );
    303304    }
    304305    tr_bitfieldFree( peer->bitfield );
Note: See TracChangeset for help on using the changeset viewer.