Changeset 3289


Ignore:
Timestamp:
Oct 4, 2007, 11:47:49 PM (15 years ago)
Author:
charles
Message:

tweak the `start torrent' code based on feedback from BentMyWookie?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r3284 r3289  
    10121012    tr_torrentRecheckCompleteness( tor );
    10131013    tor->startDate = tr_date( );
    1014     tor->isRunning = 1;
    10151014    tr_trackerStart( tor->tracker );
    10161015    tr_peerMgrStartTorrent( tor->handle->peerMgr, tor->info.hash );
     
    10181017    tr_globalUnlock( tor->handle );
    10191018}
    1020 
    1021 static void
    1022 checkAndStart( void * vtor )
    1023 {
    1024     tr_torrent * tor = vtor;
     1019   
     1020void
     1021tr_torrentStart( tr_torrent * tor )
     1022{
    10251023    tr_globalLock( tor->handle );
    10261024
     
    10371035tr_torrentRecheck( tr_torrent * tor )
    10381036{
     1037    tr_globalLock( tor->handle );
     1038
    10391039    if( !tor->uncheckedPieces )
    10401040        tor->uncheckedPieces = tr_bitfieldNew( tor->info.pieceCount );
     
    10421042
    10431043    tr_ioRecheckAdd( tor, NULL );
    1044 }
    1045    
    1046 void
    1047 tr_torrentStart( tr_torrent * tor )
    1048 {
    1049     tr_globalLock( tor->handle );
    1050 
    1051     tr_runInEventThread( tor->handle, checkAndStart, tor );
    10521044
    10531045    tr_globalUnlock( tor->handle );
Note: See TracChangeset for help on using the changeset viewer.