mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-11 19:44:55 +00:00
fix: Don't throw an ObjectDisposed exception when attempting to stop a disposed timer
This commit is contained in:
@@ -93,6 +93,9 @@ namespace ICD.Common.Utils.Timers
|
||||
/// </summary>
|
||||
public void Stop()
|
||||
{
|
||||
if (IsDisposed)
|
||||
return;
|
||||
|
||||
#if SIMPLSHARP
|
||||
m_Timer.Stop();
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user