]> granicus.if.org Git - transmission/commitdiff
#899: Hangs when clicking verify data twice
authorCharles Kerr <charles@transmissionbt.com>
Sun, 27 Apr 2008 06:34:34 +0000 (06:34 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Sun, 27 Apr 2008 06:34:34 +0000 (06:34 +0000)
libtransmission/torrent.c

index da3da1ef57b821124d1705af94e27087ba542ae3..3f00a9ca93e8297abe06d653729faa640a450e48 100644 (file)
@@ -956,9 +956,10 @@ torrentRecheckDoneCB( tr_torrent * tor )
 void
 tr_torrentVerify( tr_torrent * tor )
 {
+    tr_verifyRemove( tor );
+
     tr_globalLock( tor->handle );
 
-    tr_verifyRemove( tor );
     tr_torrentUncheck( tor );
     tr_verifyAdd( tor, torrentRecheckDoneCB );