mirror of
https://github.com/transmission/transmission
synced 2025-02-03 21:12:05 +00:00
on startup, if the speed limit timer is set, check the timer and ignore TR_PREFS_KEY_ALT_SPEED_ENABLED
This commit is contained in:
parent
828e0356cc
commit
1a716f2c76
1 changed files with 8 additions and 5 deletions
|
@ -630,12 +630,15 @@ tr_sessionInitImpl( void * vdata )
|
|||
|
||||
found = tr_bencDictFindInt( &settings, TR_PREFS_KEY_ALT_SPEED_TIME_ENABLED, &i );
|
||||
assert( found );
|
||||
tr_sessionUseAltSpeedTime( session, i!=0 );
|
||||
|
||||
found = tr_bencDictFindInt( &settings, TR_PREFS_KEY_ALT_SPEED_ENABLED, &i );
|
||||
assert( found );
|
||||
tr_sessionUseAltSpeed( session, i!=0 );
|
||||
tr_bool useAltSpeedTime = i!=0;
|
||||
tr_sessionUseAltSpeedTime( session, useAltSpeedTime );
|
||||
|
||||
if( !useAltSpeedTime )
|
||||
{
|
||||
found = tr_bencDictFindInt( &settings, TR_PREFS_KEY_ALT_SPEED_ENABLED, &i );
|
||||
assert( found );
|
||||
tr_sessionUseAltSpeed( session, i!=0 );
|
||||
}
|
||||
|
||||
/**
|
||||
*** Blocklist
|
||||
|
|
Loading…
Reference in a new issue