Ignore:
Timestamp:
Aug 12, 2009, 4:08:25 AM (13 years ago)
Author:
charles
Message:

(trunk libT) possible fix for #2297 by removing potential thread issue in tr_torrentVerify()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r8896 r8897  
    13241324}
    13251325
    1326 void
    1327 tr_torrentVerify( tr_torrent * tor )
    1328 {
     1326static void
     1327verifyTorrent( void * vtor )
     1328{
     1329    tr_torrent * tor = vtor;
     1330
    13291331    assert( tr_isTorrent( tor ) );
    13301332    tr_globalLock( tor->session );
     
    13441346
    13451347    tr_globalUnlock( tor->session );
     1348}
     1349
     1350void
     1351tr_torrentVerify( tr_torrent * tor )
     1352{
     1353    if( tr_isTorrent( tor ) )
     1354        tr_runInEventThread( tor->session, verifyTorrent, tor );
    13461355}
    13471356
Note: See TracChangeset for help on using the changeset viewer.