Changeset 8100


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

on startup, if the speed limit timer is set, check the timer and ignore TR_PREFS_KEY_ALT_SPEED_ENABLED

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r8099 r8100  
    631631    found = tr_bencDictFindInt( &settings, TR_PREFS_KEY_ALT_SPEED_TIME_ENABLED, &i );
    632632    assert( found );
    633     tr_sessionUseAltSpeedTime( session, i!=0 );
    634 
    635     found = tr_bencDictFindInt( &settings, TR_PREFS_KEY_ALT_SPEED_ENABLED, &i );
    636     assert( found );
    637     tr_sessionUseAltSpeed( session, i!=0 );
    638 
     633    tr_bool useAltSpeedTime = i!=0;
     634    tr_sessionUseAltSpeedTime( session, useAltSpeedTime );
     635
     636    if( !useAltSpeedTime )
     637    {
     638        found = tr_bencDictFindInt( &settings, TR_PREFS_KEY_ALT_SPEED_ENABLED, &i );
     639        assert( found );
     640        tr_sessionUseAltSpeed( session, i!=0 );
     641    }
    639642
    640643    /**
Note: See TracChangeset for help on using the changeset viewer.