fix: Potential fix for timer disposal on Net Standard

This commit is contained in:
Chris Cameron
2018-06-21 11:48:59 -04:00
parent 1c89ebc5c2
commit bf91d9e87f
2 changed files with 7 additions and 0 deletions

View File

@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added ### Added
- Adding SequenceComparer for ordering collections of lists, arrays, etc - Adding SequenceComparer for ordering collections of lists, arrays, etc
### Changed
- Potential fix for timer disposal on Net Standard
## [3.6.0] - 2018-06-19 ## [3.6.0] - 2018-06-19
### Added ### Added
- Added ZIP features for examining the contents of an archive - Added ZIP features for examining the contents of an archive

View File

@@ -82,8 +82,12 @@ namespace ICD.Common.Utils.Timers
/// </summary> /// </summary>
public void Dispose() public void Dispose()
{ {
if (IsDisposed)
return;
Stop(); Stop();
m_Timer.Dispose(); m_Timer.Dispose();
IsDisposed = true; IsDisposed = true;
} }