Ensure Beremiz_service.py quits properly when Main Worker stops and wa are using Wx and/or Twisted.
--- a/Beremiz_service.py Mon Apr 15 13:34:09 2019 +0200
+++ b/Beremiz_service.py Tue Apr 16 11:26:34 2019 +0200
@@ -586,4 +586,9 @@
plcobj.StopPLC()
plcobj.UnLoadPLC()
+if havetwisted:
+ reactor.stop()
+elif havewx:
+ app.ExitMainLoop()
+
sys.exit(0)