fix a race condition error in rename-test

This commit is contained in:
Jordan Lee 2013-01-31 05:09:19 +00:00
parent 4aa4012a73
commit ae1ec6aab4
1 changed files with 2 additions and 3 deletions

View File

@ -22,10 +22,9 @@
#define verify_and_block_until_done(tor) \ #define verify_and_block_until_done(tor) \
do { \ do { \
do { tr_wait_msec (10); } while (tor->verifyState != TR_VERIFY_NONE); \
tr_torrentVerify (tor); \ tr_torrentVerify (tor); \
do { \ do { tr_wait_msec (10); } while (tor->verifyState != TR_VERIFY_NONE); \
tr_wait_msec (10); \
} while (tor->verifyState != TR_VERIFY_NONE); \
} while (0) } while (0)
#define check_have_none(tor, totalSize) \ #define check_have_none(tor, totalSize) \