Changeset 1259


Ignore:
Timestamp:
Dec 18, 2006, 8:48:46 PM (15 years ago)
Author:
titer
Message:

Fixes a crash and a race condition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.c

    r1255 r1259  
    413413    tor->tracker = NULL;
    414414
     415    tr_lockLock( &tor->lock );
    415416    while( tor->peerCount > 0 )
    416417    {
    417418        tr_peerRem( tor, 0 );
    418419    }
     420    tr_lockUnlock( &tor->lock );
    419421}
    420422
     
    455457    tr_peer_t * peer;
    456458    tr_info_t * inf = &tor->info;
    457     tr_tracker_t * tc = tor->tracker;
     459    tr_tracker_t * tc;
    458460    int i;
    459461
     
    475477    memcpy( s->trackerError, tor->trackerError,
    476478            sizeof( s->trackerError ) );
     479
     480    tc = tor->tracker;
    477481    s->cannotConnect = tr_trackerCannotConnect( tc );
    478482   
Note: See TracChangeset for help on using the changeset viewer.