block while moving a file (for now)

This commit is contained in:
Mitchell Livingston 2009-10-21 22:23:08 +00:00
parent 793524ac47
commit 43639d35f3
1 changed files with 2 additions and 1 deletions

View File

@ -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