Changeset 2886


Ignore:
Timestamp:
Aug 21, 2007, 12:01:14 AM (15 years ago)
Author:
charles
Message:

ensure that all the tracker destruction code is done in the libevent thread, for a cleaner shutdown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r2885 r2886  
    371371}
    372372
    373 void
    374 tr_trackerFree( Torrent * tor )
    375 {
     373static int
     374onTorrentFreeNow( void * vtor )
     375{
     376    Torrent * tor = (Torrent *) vtor;
    376377    Tracker * t = tor->tracker;
    377378
     
    411412        tr_free( t );
    412413    }
     414
     415    return FALSE;
     416}
     417
     418void
     419tr_trackerFree( Torrent * tor )
     420{
     421    tr_timerNew( tor->tracker->handle,
     422                 onTorrentFreeNow, tor, NULL, 0 );
    413423}
    414424
Note: See TracChangeset for help on using the changeset viewer.