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

200 microseconds for real

This commit is contained in:
Mitchell Livingston 2009-11-01 22:00:51 +00:00
parent a03dd39510
commit 2c3d75fbd2

View file

@ -461,7 +461,7 @@ int trashDataFile(const char * filename)
tr_torrentSetLocation(fHandle, [folder UTF8String], YES, NULL, &status); tr_torrentSetLocation(fHandle, [folder UTF8String], YES, NULL, &status);
while (status == TR_LOC_MOVING) while (status == TR_LOC_MOVING)
sleep(1); //block while moving (for now) usleep(200); //block while moving (for now)
if (status == TR_LOC_DONE) if (status == TR_LOC_DONE)
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil]; [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil];