mirror of
https://github.com/transmission/transmission
synced 2025-02-22 22:20:39 +00:00
hopefully stop an infinite loop when hitting the stop ratio
This commit is contained in:
parent
3ccb0a7232
commit
9fe3c396f9
1 changed files with 3 additions and 3 deletions
|
@ -227,13 +227,13 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
|||
float stopRatio;
|
||||
if ([self isSeeding] && (stopRatio = [self actualStopRatio]) != INVALID && [self ratio] >= stopRatio)
|
||||
{
|
||||
[self setRatioSetting: NSOffState];
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentStoppedForRatio" object: self];
|
||||
|
||||
[self stopTransfer];
|
||||
fStat = tr_torrentStat(fHandle);
|
||||
|
||||
fFinishedSeeding = YES;
|
||||
|
||||
[self setRatioSetting: NSOffState];
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentStoppedForRatio" object: self];
|
||||
}
|
||||
|
||||
//check if checking data
|
||||
|
|
Loading…
Reference in a new issue