Potential fix for SafeTimer.Stopped() immediately executing the callback

This commit is contained in:
Chris Cameron
2017-10-18 13:17:38 -04:00
parent f1c8e92ec8
commit 93dcb6aefa

View File

@@ -65,7 +65,8 @@ namespace ICD.Common.Utils.Timers
/// <returns></returns> /// <returns></returns>
public static SafeTimer Stopped(Action callback) public static SafeTimer Stopped(Action callback)
{ {
SafeTimer output = new SafeTimer(callback, 0); // Some arbitrarily large number that shouldn't timeout before we call stop.
SafeTimer output = new SafeTimer(callback, 100 * 1000, 100 * 1000);
output.Stop(); output.Stop();
return output; return output;
} }