]> granicus.if.org Git - transmission/commitdiff
(trunk libT) possible fix for #2238 as suggested by kjg
authorCharles Kerr <charles@transmissionbt.com>
Mon, 3 Aug 2009 16:24:44 +0000 (16:24 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Mon, 3 Aug 2009 16:24:44 +0000 (16:24 +0000)
libtransmission/torrent.c
libtransmission/verify.c

index a95ec1f1508bfae6ebe3b1fe121904ea963f5bd5..d0e4c90a87f8fee0f68e35f64dd1c5df9598f65c 100644 (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 */
index 9cab00218c2a13c348fa27a72469815c1a98e422..0396d5b8d79778d1fe4d15e9a3df0c9036094996 100644 (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 );