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>
|
/// </summary>
|
||||||
public void Stop()
|
public void Stop()
|
||||||
{
|
{
|
||||||
|
if (IsDisposed)
|
||||||
|
return;
|
||||||
|
|
||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
m_Timer.Stop();
|
m_Timer.Stop();
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user