From 568e97d2208a2205c8094b6e61ed9af1166c3826 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 7 Oct 2007 04:32:37 +0000 Subject: [PATCH] recheck the completeness stats after `recheck torrent' --- libtransmission/torrent.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 171d00671..09d2644e2 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -1004,8 +1004,6 @@ checkAndStartCB( tr_torrent * tor ) { tr_globalLock( tor->handle ); - tr_torrentRecheckCompleteness( tor ); - tor->isRunning = 1; *tor->errorString = '\0'; tr_torrentResetTransferStats( tor ); @@ -1040,7 +1038,7 @@ tr_torrentRecheck( tr_torrent * tor ) tor->uncheckedPieces = tr_bitfieldNew( tor->info.pieceCount ); tr_bitfieldAddRange( tor->uncheckedPieces, 0, tor->info.pieceCount ); - tr_ioRecheckAdd( tor, NULL ); + tr_ioRecheckAdd( tor, tr_torrentRecheckCompleteness ); tr_globalUnlock( tor->handle ); }