recheck the completeness stats after `recheck torrent'

This commit is contained in:
Charles Kerr 2007-10-07 04:32:37 +00:00
parent 8abcc566dd
commit 568e97d220
1 changed files with 1 additions and 3 deletions

View File

@ -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 );
}