Changeset 6209


Ignore:
Timestamp:
Jun 16, 2008, 11:27:38 PM (13 years ago)
Author:
livings124
Message:

make sure the events for "finished downloading" occur if it finishes seeding (for ratio) at the same time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r6199 r6209  
    18311831- (void) completenessChange: (NSNumber *) status
    18321832{
    1833     [self update];
     1833    fStat = tr_torrentStat(fHandle); //don't call update yet to avoid auto-stop
    18341834   
    18351835    BOOL canMove;
     
    18671867            [self setTimeMachineExclude: NO forPath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]];
    18681868           
    1869             fStat = tr_torrentStat(fHandle);
    18701869            [[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentFinishedDownloading" object: self];
    18711870            break;
     
    18791878    }
    18801879    [status release];
     1880   
     1881    [self update];
    18811882}
    18821883
Note: See TracChangeset for help on using the changeset viewer.