diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index a95ec1f15..d0e4c90a8 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -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 */ diff --git a/libtransmission/verify.c b/libtransmission/verify.c index 9cab00218..0396d5b8d 100644 --- a/libtransmission/verify.c +++ b/libtransmission/verify.c @@ -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 );