mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
fix: Fixing bug where Timer.Reset() would continue repeating on an interval in Net Standard
This commit is contained in:
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
### Changed
|
### Changed
|
||||||
- Potential fix for timer disposal on Net Standard
|
- Potential fix for timer disposal on Net Standard
|
||||||
- Added workaround for older RPC servers where the typestring being broadcast would stil include _SimplSharp, now will be stripped
|
- Added workaround for older RPC servers where the typestring being broadcast would stil include _SimplSharp, now will be stripped
|
||||||
|
- Fixing bug where Timer.Reset() would continue repeating on an interval in Net Standard
|
||||||
|
|
||||||
## [3.6.0] - 2018-06-19
|
## [3.6.0] - 2018-06-19
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ namespace ICD.Common.Utils.Timers
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Callback is called after the dueTime milliseconds.
|
/// Callback is called once after the dueTime milliseconds.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="dueTime"></param>
|
/// <param name="dueTime"></param>
|
||||||
public void Reset(long dueTime)
|
public void Reset(long dueTime)
|
||||||
@@ -125,7 +125,7 @@ namespace ICD.Common.Utils.Timers
|
|||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
m_Timer.Reset(dueTime);
|
m_Timer.Reset(dueTime);
|
||||||
#else
|
#else
|
||||||
m_Timer.Change((int)dueTime, m_RepeatPeriod);
|
m_Timer.Change((int)dueTime, Timeout.Infinite);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user