# HG changeset patch # User Laurent Bessard # Date 1368180844 -7200 # Node ID ed1f9752f9297580c604cc8b1c9318f8c438a275 # Parent f340728940f69f18625e400b1583a6f2e2647a60 Fixed connector closing calls diff -r f340728940f6 -r ed1f9752f929 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()