From 43639d35f3a6d56115544fcc8640ec725b1b8ed3 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 21 Oct 2009 22:23:08 +0000 Subject: [PATCH] block while moving a file (for now) --- macosx/Torrent.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 2fbd3633a..fcb10c8d4 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -460,10 +460,11 @@ int trashDataFile(const char * filename) return; }*/ - #warning doesn't block? int status; tr_torrentSetLocation(fHandle, [folder UTF8String], YES, NULL, &status); + while (status == TR_LOC_MOVING); //block while moving (for now) + if (status == TR_LOC_DONE) [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil]; else