Fixed connector closing calls
authorLaurent Bessard
Fri, 10 May 2013 12:14:04 +0200
changeset 50 ed1f9752f929
parent 49 f340728940f6
child 51 8a4783508ea9
Fixed connector closing calls
LPCManager.py
--- a/LPCManager.py	Tue May 07 12:27:35 2013 +0200
+++ b/LPCManager.py	Fri May 10 12:14:04 2013 +0200
@@ -930,7 +930,7 @@
             if self._connector is not None:
                 status, log_count = self._connector.GetPLCstatus()
                 if status == "Disconnected":
-                    self._SetConnector(None)
+                    self._SetConnector(None, False)
                 else:
                     self.UpdatePLCLog(log_count)
             else:
@@ -1205,7 +1205,7 @@
     
     def StopSimulation(self):
         self.CurrentMode = None
-        self._SetConnector(None)
+        self._SetConnector(None, False)
         self.ApplyOnlineMode()
     
     def _Stop(self):
@@ -1368,7 +1368,7 @@
             
             self.CTR.ResetAppFrame(lpcberemiz_cmd.Log)
             if self.CTR.OnlineMode == 0:
-                self.CTR._connector = None
+                self.CTR._SetConnector(None, False)
             
             self.CTR.KillDebugThread()
             self.KillLocalRuntime()