1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

(trunk libT) possible fix for #2238 as suggested by kjg

This commit is contained in:
Charles Kerr 2009-08-03 16:24:44 +00:00
parent 39fdda4f22
commit 87a7bf043a
2 changed files with 3 additions and 2 deletions

View file

@ -30,7 +30,7 @@
#include "completion.h"
#include "crypto.h" /* for tr_sha1 */
#include "resume.h"
#include "fdlimit.h" /* tr_fdFileClose */
#include "fdlimit.h" /* tr_fdTorrentClose */
#include "metainfo.h"
#include "peer-mgr.h"
#include "platform.h" /* TR_PATH_DELIMITER_STR */

View file

@ -119,6 +119,7 @@ verifyTorrent( tr_torrent * tor, tr_bool * stopFlag )
changed = TRUE;
}
tr_torrentSetPieceChecked( tor, pieceIndex, TRUE );
tor->anyDate = time( NULL );
SHA1_Init( &sha );
++pieceIndex;
@ -306,7 +307,7 @@ tr_verifyRemove( tr_torrent * tor )
else
{
tr_free( tr_list_remove( &verifyList, tor, compareVerifyByTorrent ) );
tor->verifyState = TR_VERIFY_NONE;
tr_torrentSetVerifyState( tor, TR_VERIFY_NONE );
}
tr_lockUnlock( lock );