--- a/Beremiz_service.py Fri Apr 19 01:44:25 2013 +0200
+++ b/Beremiz_service.py Fri Apr 19 11:19:55 2013 +0900
@@ -465,6 +465,8 @@
self.continueloop = False
+ if self.plcobj is not None: + self.plcobj.UnLoadPLC() @@ -496,7 +498,8 @@
self.daemon.requestLoop()
+ if self.plcobj is not None: if self.servicepublisher is not None:
self.servicepublisher.UnRegisterService()
self.servicepublisher = None
--- a/runtime/PLCObject.py Fri Apr 19 01:44:25 2013 +0200
+++ b/runtime/PLCObject.py Fri Apr 19 11:19:55 2013 +0900
@@ -205,6 +205,10 @@
PLCprint(self._loading_error)
+ self.PythonRuntimeCleanup() @@ -363,9 +367,8 @@
NewFileName = md5sum + lib_ext
extra_files_log = os.path.join(self.workingdir,"extra_files.txt")
- self.PythonRuntimeCleanup()
self.LogMessage("NewPLC (%s)"%md5sum)