Changeset 12073


Ignore:
Timestamp:
Mar 3, 2011, 5:28:04 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) #4070 "assertion failure happens soon after startup" -- fixed.

Thanks to User294 for helping to track down the problem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r12059 r12073  
    16091609
    16101610    assert( peer != NULL );
    1611     assert( peer->atom != NULL );
    16121611
    16131612    switch( e->eventType )
     
    16311630
    16321631            /* update our atom */
    1633             if( e->wasPieceData )
     1632            if( peer->atom && e->wasPieceData )
    16341633                peer->atom->piece_data_time = now;
    16351634
     
    16721671
    16731672        case TR_PEER_CLIENT_GOT_PORT:
    1674             peer->atom->port = e->port;
     1673            if( peer->atom )
     1674                peer->atom->port = e->port;
    16751675            break;
    16761676
     
    17001700
    17011701            /* update our atom */
    1702             if( e->wasPieceData )
     1702            if( peer->atom && e->wasPieceData )
    17031703                peer->atom->piece_data_time = now;
    17041704
Note: See TracChangeset for help on using the changeset viewer.