mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Improvements during shutdown
* stop listeners * check if airspace monitor and FSD still exist * stop listeners on "aboutToShutdown()" * check for processEventsFor(500)
This commit is contained in:
committed by
Mat Sutcliffe
parent
95ca63ce6d
commit
9235f3232e
@@ -720,8 +720,12 @@ namespace BlackCore
|
||||
virtual void checkImpl() = 0;
|
||||
|
||||
private:
|
||||
//! swift will shutdown
|
||||
void onAboutToShutdown();
|
||||
|
||||
BlackMisc::Simulation::CSimulatorPluginInfo m_info;
|
||||
std::atomic_bool m_isRunning { false };
|
||||
std::atomic_bool m_isRunning { false };
|
||||
std::atomic_bool m_aboutToShutdown { false }; // swift will shutdown
|
||||
};
|
||||
|
||||
//! Factory pattern class to create instances of ISimulator
|
||||
|
||||
Reference in New Issue
Block a user