mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 20:54:58 +00:00
fix: SafeTimer Stopped now returns a SafeTimer with no due time and no repeat period
This commit is contained in:
committed by
Chris Cameron
parent
7666021925
commit
3e3a4e33cb
@@ -67,8 +67,8 @@ namespace ICD.Common.Utils.Timers
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static SafeTimer Stopped(Action callback)
|
public static SafeTimer Stopped(Action callback)
|
||||||
{
|
{
|
||||||
// Some arbitrarily large number that shouldn't timeout before we call stop.
|
//No due time or repeat period on a stopped timer
|
||||||
SafeTimer output = new SafeTimer(callback, 100 * 1000, 100 * 1000);
|
SafeTimer output = new SafeTimer(callback, -1, -1);
|
||||||
output.Stop();
|
output.Stop();
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user