mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +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>
|
||||
public void Stop()
|
||||
{
|
||||
if (IsDisposed)
|
||||
return;
|
||||
|
||||
#if SIMPLSHARP
|
||||
m_Timer.Stop();
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue