--- a/runtime/PLCObject.py Thu Mar 13 13:15:05 2025 +0100
+++ b/runtime/PLCObject.py Mon Mar 17 13:28:06 2025 +0100
@@ -566,14 +566,20 @@
self._fail(_("Problem starting PLC : error %d" % res))
if self.PLCStatus == PlcStatus.Started:
self.LogMessage("PLC stopped")
if self.TraceThread is not None:
+ # Does not @RunInMain since python runtime Stop call must run in + # main thread, and StopPLC waits for it to complete # Wait for python runtime stop to complete
if self.PlcStopped.wait(timeout=5):
self.PLCStatus = PlcStatus.Stopped