Changeset 8099


Ignore:
Timestamp:
Mar 28, 2009, 7:46:34 PM (13 years ago)
Author:
livings124
Message:

improve the logic when toggling the use of the speed limit timer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r8097 r8099  
    10391039        s->altSpeedTimeEnabled = b;
    10401040
    1041         if( isAltTime( s ) )
    1042             tr_sessionUseAltSpeed( s, b );
     1041        const tr_bool isAlt = isAltTime( s );
     1042        if( b && s->altSpeedEnabled != isAlt )
     1043            tr_sessionUseAltSpeed( s, isAlt );
    10431044    }
    10441045}
Note: See TracChangeset for help on using the changeset viewer.