Ignore:
Timestamp:
03/05/15 18:14:49 (9 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Disconnection from the simulator is logged (re #249)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/flight.py

    r594 r609  
    356356        return self.isTimeDifferenceTooMuch(self.bookedFlight.arrivalTime,
    357357                                            self.blockTimeEnd)
     358
     359    def disconnected(self):
     360        """Called when the connection to the simulator has failed."""
     361        if self.aircraft is not None and self.aircraft.state is not None:
     362            self.logger.message(self.aircraft.state.timestamp,
     363                                "The connection to the simulator has failed")
    358364
    359365    def handleState(self, oldState, currentState):
Note: See TracChangeset for help on using the changeset viewer.