mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
if stop ratio is infinity and there is a ratio to stop at, stop
This commit is contained in:
parent
fbcc6c73dc
commit
e6ad008831
1 changed files with 3 additions and 2 deletions
|
@ -289,8 +289,9 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
|||
}
|
||||
|
||||
//check to stop for ratio
|
||||
float stopRatio;
|
||||
if ([self isSeeding] && (stopRatio = [self actualStopRatio]) != INVALID && [self ratio] >= stopRatio)
|
||||
float stopRatio, ratio;
|
||||
if ([self isSeeding] && (stopRatio = [self actualStopRatio]) != INVALID
|
||||
&& ((ratio = [self ratio]) >= stopRatio || ratio == TR_RATIO_INF))
|
||||
{
|
||||
[self stopTransfer];
|
||||
fStat = tr_torrentStat(fHandle);
|
||||
|
|
Loading…
Reference in a new issue