From bfee506ff4e8eaffa999bed4f319fad3ead8935f Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 1 Jul 2007 19:10:14 +0000 Subject: [PATCH] Move the initial fastresume check into the thread that creates the torrent, rather than in the torrent's worker thread --- libtransmission/torrent.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 4fac6aac1..4b5ee22a6 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -221,6 +221,7 @@ torrentRealInit( tr_handle_t * h, tor->error = TR_OK; tor->runStatus = flags & TR_FLAG_PAUSED ? TR_RUN_STOPPED : TR_RUN_RUNNING; + tor->recheckFlag = tr_ioCheckFiles( tor, TR_RECHECK_FAST ); tr_sharedLock( h->shared ); tor->next = h->torrentList; @@ -948,8 +949,6 @@ torrentThreadLoop ( void * _tor ) tr_lockInit( &checkFilesLock ); } - tor->recheckFlag = tr_ioCheckFiles( tor, TR_RECHECK_FAST ); - /* loop until the torrent is being deleted */ while( ! ( tor->dieFlag && (tor->runStatus == TR_RUN_STOPPED) ) ) {