mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-09 01:35:06 +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>
|
||||
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();
|
||||
return output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user