mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 22:15:37 +08:00
Passing connection status to airspace monitor.
When the network connection is terminated, airspace monitor can still recevice pending signals from vatlib. Those have to be ignored. Otherwise it can happen aircraft (.. etc.) are added again to airspace, which gives inconsistent results.
This commit is contained in:
@@ -99,6 +99,9 @@ namespace BlackCore
|
||||
//! Clear the contents
|
||||
void clear();
|
||||
|
||||
//! Connection status
|
||||
void setConnected(bool connected);
|
||||
|
||||
//! Request to update other clients' data from the network
|
||||
void requestDataUpdates();
|
||||
|
||||
@@ -173,6 +176,7 @@ namespace BlackCore
|
||||
CAirspaceWatchdog m_atcWatchdog;
|
||||
CAirspaceWatchdog m_aircraftWatchdog;
|
||||
bool m_serverSupportsNameQuery = false; //!< not all servers support name query
|
||||
bool m_connected = false; //!< retrieve data
|
||||
|
||||
// TODO FIXME (MS) should be in INetwork
|
||||
void sendFsipiCustomPacket(const BlackMisc::Aviation::CCallsign &recipientCallsign) const;
|
||||
|
||||
Reference in New Issue
Block a user