Changeset 9467


Ignore:
Timestamp:
Nov 1, 2009, 9:56:50 PM (13 years ago)
Author:
livings124
Message:

attempt to get the move functionality not to hang on Mac by 1. having the while loop wait for 200 microseconds, and 2. making the status variable volatile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r9462 r9467  
    458458    }
    459459   
    460     int status;
     460    volatile int status;
    461461    tr_torrentSetLocation(fHandle, [folder UTF8String], YES, NULL, &status);
    462462   
    463     while (status == TR_LOC_MOVING); //block while moving (for now)
     463    while (status == TR_LOC_MOVING)
     464        sleep(1); //block while moving (for now)
    464465   
    465466    if (status == TR_LOC_DONE)
     
    14141415    {
    14151416        [self setTimeMachineExclude: YES forPath: currentLocation];
    1416         [fTimeMachineExclude release];
    14171417        fTimeMachineExclude = [currentLocation retain];
    14181418    }
Note: See TracChangeset for help on using the changeset viewer.