mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-05 09:45:44 +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);
|
this->readDeferredInBackground(remainingEntities, 1500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CWebDataServices::~CWebDataServices()
|
||||||
|
{
|
||||||
|
this->gracefulShutdown();
|
||||||
|
}
|
||||||
|
|
||||||
CServerList CWebDataServices::getVatsimFsdServers() const
|
CServerList CWebDataServices::getVatsimFsdServers() const
|
||||||
{
|
{
|
||||||
if (m_vatsimDataFileReader) { return m_vatsimDataFileReader->getFsdServers(); }
|
if (m_vatsimDataFileReader) { return m_vatsimDataFileReader->getFsdServers(); }
|
||||||
|
|||||||
@@ -93,6 +93,9 @@ namespace BlackCore
|
|||||||
//! Constructor, only allowed from BlackCore::CApplication
|
//! Constructor, only allowed from BlackCore::CApplication
|
||||||
CWebDataServices(CWebReaderFlags::WebReader readerFlags, const BlackCore::Db::CDatabaseReaderConfigList &dbReaderConfig, BlackMisc::Restricted<CApplication>, QObject *parent = nullptr);
|
CWebDataServices(CWebReaderFlags::WebReader readerFlags, const BlackCore::Db::CDatabaseReaderConfigList &dbReaderConfig, BlackMisc::Restricted<CApplication>, QObject *parent = nullptr);
|
||||||
|
|
||||||
|
//! Destructor
|
||||||
|
virtual ~CWebDataServices();
|
||||||
|
|
||||||
//! Shutdown
|
//! Shutdown
|
||||||
void gracefulShutdown();
|
void gracefulShutdown();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user