diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-04-24 14:01:40 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-04-24 14:01:40 +0300 |
| commit | afca405892ace809c498c010a2d4484bec5adf11 (patch) | |
| tree | e3a1640a7ff89ecc0d246287a4281efe616f5715 /Software/Visual_Studio/Tango.Core | |
| parent | 636ad730569dfef1a4ee04c8d716d510bcc47ee1 (diff) | |
| download | Tango-afca405892ace809c498c010a2d4484bec5adf11.tar.gz Tango-afca405892ace809c498c010a2d4484bec5adf11.zip | |
Implemented USB adapter finalizer.
Added exception logging for USB adapter disconnection error.
Added Volume color space icon to PPC.
Implemented KeepAlive suppression on StorageAPI.
Suppressed KeepAlive when uploading job.
Implemented keep alive skipping when arrived responses queue is busy.
Diffstat (limited to 'Software/Visual_Studio/Tango.Core')
| -rw-r--r-- | Software/Visual_Studio/Tango.Core/Threading/ActionTimer.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.Core/Threading/ActionTimer.cs b/Software/Visual_Studio/Tango.Core/Threading/ActionTimer.cs index f16e7739c..eda115047 100644 --- a/Software/Visual_Studio/Tango.Core/Threading/ActionTimer.cs +++ b/Software/Visual_Studio/Tango.Core/Threading/ActionTimer.cs @@ -33,9 +33,12 @@ namespace Tango.Core.Threading /// <param name="action">The action.</param> public void ResetReplace(Action action) { - _timer.Stop(); - _action = action; - _timer.Start(); + if (_timer != null) + { + _timer.Stop(); + _action = action; + _timer.Start(); + } } private void _timer_Elapsed(object sender, ElapsedEventArgs e) |
