mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
make sure the events for "finished downloading" occur if it finishes seeding (for ratio) at the same time
This commit is contained in:
parent
87f0b40589
commit
4ff5ea5e66
1 changed files with 3 additions and 2 deletions
|
@ -1830,7 +1830,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
|||
//status has been retained
|
||||
- (void) completenessChange: (NSNumber *) status
|
||||
{
|
||||
[self update];
|
||||
fStat = tr_torrentStat(fHandle); //don't call update yet to avoid auto-stop
|
||||
|
||||
BOOL canMove;
|
||||
switch ([status intValue])
|
||||
|
@ -1866,7 +1866,6 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
|||
//allow to be backed up by Time Machine
|
||||
[self setTimeMachineExclude: NO forPath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]];
|
||||
|
||||
fStat = tr_torrentStat(fHandle);
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentFinishedDownloading" object: self];
|
||||
break;
|
||||
|
||||
|
@ -1878,6 +1877,8 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
|||
break;
|
||||
}
|
||||
[status release];
|
||||
|
||||
[self update];
|
||||
}
|
||||
|
||||
- (void) quickPause
|
||||
|
|
Loading…
Reference in a new issue