Fixed python runtime trace thread auto suspend. Now suspends after 3 seconds when no trace is requested
authorEdouard Tisserant
Mon, 02 Feb 2015 16:51:35 +0100
changeset 1435 291a17b755d1
parent 1434 6e0cd0ceabb7
child 1436 e15ca67197b9
Fixed python runtime trace thread auto suspend. Now suspends after 3 seconds when no trace is requested
runtime/PLCObject.py
--- a/runtime/PLCObject.py	Fri Jan 30 20:42:24 2015 +0100
+++ b/runtime/PLCObject.py	Mon Feb 02 16:51:35 2015 +0100
@@ -502,6 +502,7 @@
             self.Traces = []
             self.TraceLock.release()
             self._suspendDebug(True) # Disable debugger
+            self.TraceWakeup.clear()
             self.TraceWakeup.wait()
             self._resumeDebug() # Re-enable debugger