]> granicus.if.org Git - transmission/commitdiff
(trunk libt) experimental fix for the updated torrent issue reported by Lacrocivious
authorCharles Kerr <charles@transmissionbt.com>
Wed, 22 Dec 2010 04:29:41 +0000 (04:29 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Wed, 22 Dec 2010 04:29:41 +0000 (04:29 +0000)
libtransmission/torrent.c

index e5a606ee6ef6079e1de10e5cd13835e4a6c7b8a0..a7f28ba17592a7895f8f0ecd2be2d8a3a38834b0 100644 (file)
@@ -1592,6 +1592,13 @@ torrentStart( tr_torrent * tor )
     if( setLocalErrorIfFilesDisappeared( tor ) )
         return;
 
+    /* verifying right now... wait until that's done so
+     * we'll know what completeness to use/announce */
+    if( tor->verifyState != TR_VERIFY_NONE ) {
+        tor->startAfterVerify = TRUE;
+        return;
+    }
+
     /* otherwise, start it now... */
     tr_sessionLock( tor->session );
 
@@ -1601,8 +1608,6 @@ torrentStart( tr_torrent * tor )
         tr_torrentSetRatioMode( tor, TR_RATIOLIMIT_UNLIMITED );
     }
 
-    tr_verifyRemove( tor );
-
     /* corresponds to the peer_id sent as a tracker request parameter.
      * one tracker admin says: "When the same torrent is opened and
      * closed and opened again without quitting Transmission ...