mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-10 02:05:20 +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>
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user