Tweak the first torrent's recheck state as requested by BentMyWookie
This commit is contained in:
parent
8d4ff5818c
commit
42d007553d
|
@ -384,8 +384,8 @@ tr_ioRecheckAdd( tr_torrent * tor,
|
||||||
node->recheck_done_cb = recheck_done_cb;
|
node->recheck_done_cb = recheck_done_cb;
|
||||||
|
|
||||||
tr_lockLock( getRecheckLock( ) );
|
tr_lockLock( getRecheckLock( ) );
|
||||||
|
tor->recheckState = recheckList ? TR_RECHECK_WAIT : TR_RECHECK_NOW;
|
||||||
tr_list_append( &recheckList, node );
|
tr_list_append( &recheckList, node );
|
||||||
tor->recheckState = TR_RECHECK_WAIT;
|
|
||||||
if( recheckThread == NULL )
|
if( recheckThread == NULL )
|
||||||
recheckThread = tr_threadNew( recheckThreadFunc, NULL, "recheckThreadFunc" );
|
recheckThread = tr_threadNew( recheckThreadFunc, NULL, "recheckThreadFunc" );
|
||||||
tr_lockUnlock( getRecheckLock( ) );
|
tr_lockUnlock( getRecheckLock( ) );
|
||||||
|
|
Loading…
Reference in New Issue