1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

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

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