mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
Potential fix for SafeTimer.Stopped() immediately executing the callback
This commit is contained in:
parent
f1c8e92ec8
commit
93dcb6aefa
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue