fix: SafeTimer Stopped now returns a SafeTimer with no due time and no repeat period

This commit is contained in:
Austin Noska
2019-06-14 15:38:52 -04:00
committed by Chris Cameron
parent 7666021925
commit 3e3a4e33cb

View File

@@ -67,8 +67,8 @@ namespace ICD.Common.Utils.Timers
/// <returns></returns>
public static SafeTimer Stopped(Action callback)
{
// Some arbitrarily large number that shouldn't timeout before we call stop.
SafeTimer output = new SafeTimer(callback, 100 * 1000, 100 * 1000);
//No due time or repeat period on a stopped timer
SafeTimer output = new SafeTimer(callback, -1, -1);
output.Stop();
return output;
}