Changeset 1682


Ignore:
Timestamp:
Apr 7, 2007, 9:08:00 PM (15 years ago)
Author:
livings124
Message:

if stop ratio is infinity and there is a ratio to stop at, stop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r1657 r1682  
    290290   
    291291    //check to stop for ratio
    292     float stopRatio;
    293     if ([self isSeeding] && (stopRatio = [self actualStopRatio]) != INVALID && [self ratio] >= stopRatio)
     292    float stopRatio, ratio;
     293    if ([self isSeeding] && (stopRatio = [self actualStopRatio]) != INVALID
     294                        && ((ratio = [self ratio]) >= stopRatio || ratio == TR_RATIO_INF))
    294295    {
    295296        [self stopTransfer];
Note: See TracChangeset for help on using the changeset viewer.