Fix #12509: Maintain timer sort invariants when changing period
This commit is contained in:
committed by
rubidium42
parent
11ec156b64
commit
9b747a173d
@@ -98,7 +98,7 @@ public:
|
||||
*/
|
||||
void SetInterval(const TPeriod interval, bool reset = true)
|
||||
{
|
||||
this->period = interval;
|
||||
TimerManager<TTimerType>::ChangeRegisteredTimerPeriod(*this, interval);
|
||||
if (reset) this->storage = {};
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
*/
|
||||
void Reset(const TPeriod timeout)
|
||||
{
|
||||
this->period = timeout;
|
||||
TimerManager<TTimerType>::ChangeRegisteredTimerPeriod(*this, timeout);
|
||||
this->fired = false;
|
||||
this->storage = {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user