SVGHMI : fix watchdog exception when timeout null svghmi
authorEdouard Tisserant
Thu, 13 Feb 2020 09:41:43 +0100
branchsvghmi
changeset 2835 bc666f020ab3
parent 2834 6ac6a9dff594
child 2836 ce6cecdb7320
SVGHMI : fix watchdog exception when timeout null
svghmi/svghmi_server.py
--- a/svghmi/svghmi_server.py	Tue Feb 11 13:56:48 2020 +0100
+++ b/svghmi/svghmi_server.py	Thu Feb 13 09:41:43 2020 +0100
@@ -92,6 +92,8 @@
         if duration:
             self.timer = Timer(duration, self.trigger)
             self.timer.start()
+        else:
+            self.timer = None
 
     def _stop(self):
         if self.timer is not None: