From afca405892ace809c498c010a2d4484bec5adf11 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 24 Apr 2019 14:01:40 +0300 Subject: 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. --- Software/Visual_Studio/Tango.Core/Threading/ActionTimer.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/Tango.Core/Threading') 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 /// The action. 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) -- cgit v1.3.1