mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Gracefully shutdown if destructed, slightly related to Ref T315
This commit is contained in:
@@ -110,6 +110,11 @@ namespace BlackCore
|
||||
this->readDeferredInBackground(remainingEntities, 1500);
|
||||
}
|
||||
|
||||
CWebDataServices::~CWebDataServices()
|
||||
{
|
||||
this->gracefulShutdown();
|
||||
}
|
||||
|
||||
CServerList CWebDataServices::getVatsimFsdServers() const
|
||||
{
|
||||
if (m_vatsimDataFileReader) { return m_vatsimDataFileReader->getFsdServers(); }
|
||||
|
||||
@@ -93,6 +93,9 @@ namespace BlackCore
|
||||
//! Constructor, only allowed from BlackCore::CApplication
|
||||
CWebDataServices(CWebReaderFlags::WebReader readerFlags, const BlackCore::Db::CDatabaseReaderConfigList &dbReaderConfig, BlackMisc::Restricted<CApplication>, QObject *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
virtual ~CWebDataServices();
|
||||
|
||||
//! Shutdown
|
||||
void gracefulShutdown();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user