mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 20:54:58 +00:00
Potential fix for SafeTimer.Stopped() immediately executing the callback
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user