# HG changeset patch # User Laurent Bessard # Date 1380833978 -7200 # Node ID 4b838bdedc1675fdc742b5d6bb2635b20ce43869 # Parent a4bc15ac799838a78e36e4e8e1212115f574b38b Fixed bug when starting simulation. In some case PLC status was asked before local runtime was connected. diff -r a4bc15ac7998 -r 4b838bdedc16 LPCManager.py --- a/LPCManager.py Fri Sep 27 14:06:59 2013 +0200 +++ b/LPCManager.py Thu Oct 03 22:59:38 2013 +0200 @@ -1006,8 +1006,6 @@ """ Method called by user to Simulate PLC """ - self.CurrentMode = SIMULATION_MODE - uri = "LOCAL://" try: self._SetConnector(connectors.ConnectorFactory(uri, self)) @@ -1022,6 +1020,8 @@ self.StopSimulation() return False + self.CurrentMode = SIMULATION_MODE + buildpath = self._getBuildPath() # Eventually create build dir