--- a/runtime/PLCObject.py Tue Apr 09 13:13:27 2019 +0200
+++ b/runtime/PLCObject.py Tue Apr 09 13:18:51 2019 +0200
@@ -391,7 +391,6 @@
self.PythonThread = Thread(target=self.PythonThreadProc)
self.PythonThread.start()
-
# used internaly
def PythonRuntimeCleanup(self):
if self.python_runtime_vars is not None:
@@ -436,19 +435,17 @@
cmd = self.PythonThreadCmd
self.PythonThreadCmd = "Wait"
self.PythonThreadCondLock.release()
-
- if cmd == "Activate" :
+
+ if cmd == "Activate":
self.PythonRuntimeCall("start")
-
self.PythonThreadLoop()
-
self.PythonRuntimeCall("stop")
else: # "Finish"
break
def PythonThreadCommand(self, cmd):
self.PythonThreadCondLock.acquire()
- self.PythonThreadCmd = cmd
+ self.PythonThreadCmd = cmd
self.PythonThreadCond.notify()
self.PythonThreadCondLock.release()
--- a/runtime/__init__.py Tue Apr 09 13:13:27 2019 +0200
+++ b/runtime/__init__.py Tue Apr 09 13:18:51 2019 +0200
@@ -38,5 +38,3 @@
except Exception:
res = (None, sys.exc_info())
return res
-
-