]> granicus.if.org Git - transmission/commitdiff
fix a race condition error in rename-test
authorJordan Lee <jordan@transmissionbt.com>
Thu, 31 Jan 2013 05:09:19 +0000 (05:09 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Thu, 31 Jan 2013 05:09:19 +0000 (05:09 +0000)
libtransmission/rename-test.c

index a7b9ac4c4cc553c3dd4b6a960ca15e6b1618df3b..4f03003597f3f6cd6b4ed293d45dd0700be1266b 100644 (file)
 
 #define verify_and_block_until_done(tor) \
   do { \
+    do { tr_wait_msec (10); } while (tor->verifyState != TR_VERIFY_NONE); \
     tr_torrentVerify (tor); \
-    do { \
-      tr_wait_msec (10); \
-    } while (tor->verifyState != TR_VERIFY_NONE); \
+    do { tr_wait_msec (10); } while (tor->verifyState != TR_VERIFY_NONE); \
   } while (0)
 
 #define check_have_none(tor, totalSize) \