mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
fix: Don't throw an ObjectDisposed exception when attempting to stop a disposed timer
This commit is contained in:
parent
1db7d4b45d
commit
cc79e88702
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue