fix: Fixing bug where Timer.Reset() would continue repeating on an interval in Net Standard

This commit is contained in:
Chris Cameron
2018-06-29 17:11:32 -04:00
parent 621d83d8dc
commit 514c0eaec5
2 changed files with 3 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ namespace ICD.Common.Utils.Timers
}
/// <summary>
/// Callback is called after the dueTime milliseconds.
/// Callback is called once after the dueTime milliseconds.
/// </summary>
/// <param name="dueTime"></param>
public void Reset(long dueTime)
@@ -125,7 +125,7 @@ namespace ICD.Common.Utils.Timers
#if SIMPLSHARP
m_Timer.Reset(dueTime);
#else
m_Timer.Change((int)dueTime, m_RepeatPeriod);
m_Timer.Change((int)dueTime, Timeout.Infinite);
#endif
}