mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 20:54:58 +00:00
fix: IcdTimer fix issue that prevents OnElapsed callback from firing when Length is less than (or close to) Heartbeat Interval
This commit is contained in:
@@ -118,6 +118,7 @@ namespace ICD.Common.Utils.Timers
|
|||||||
Length = length;
|
Length = length;
|
||||||
|
|
||||||
m_Stopwatch.Reset();
|
m_Stopwatch.Reset();
|
||||||
|
m_LastHeartbeatMilliseconds = 0;
|
||||||
m_Stopwatch.Start();
|
m_Stopwatch.Start();
|
||||||
|
|
||||||
RaiseOnIsRunningChanged();
|
RaiseOnIsRunningChanged();
|
||||||
|
|||||||
Reference in New Issue
Block a user