Changeset 6975
- Timestamp:
- Oct 28, 2008, 3:13:07 PM (12 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/torrent.c
r6969 r6975 1125 1125 if( !tor->isRunning ) 1126 1126 { 1127 if( reloadProgress ) 1127 const int isVerifying = tr_verifyInProgress( tor ); 1128 1129 if( !isVerifying && reloadProgress ) 1128 1130 tr_torrentLoadResume( tor, TR_FR_PROGRESS, NULL ); 1131 1129 1132 tor->isRunning = 1; 1130 tr_verifyAdd( tor, checkAndStartCB ); 1133 1134 if( !isVerifying ) 1135 tr_verifyAdd( tor, checkAndStartCB ); 1131 1136 } 1132 1137 -
trunk/libtransmission/verify.c
r6905 r6975 202 202 } 203 203 204 int 205 tr_verifyInProgress( const tr_torrent * tor ) 206 { 207 int found = FALSE; 208 tr_lock * lock = getVerifyLock( ); 209 tr_lockLock( lock ); 210 211 found = ( tor == currentNode.torrent ) 212 || ( tr_list_find( verifyList, tor, compareVerifyByTorrent ) != NULL ); 213 214 tr_lockUnlock( lock ); 215 return found; 216 } 217 204 218 void 205 219 tr_verifyRemove( tr_torrent * tor ) -
trunk/libtransmission/verify.h
r6795 r6975 21 21 void tr_verifyRemove( tr_torrent * tor ); 22 22 23 int tr_verifyInProgress( const tr_torrent * tor ); 24 23 25 #endif
Note: See TracChangeset
for help on using the changeset viewer.