Gracefully shutdown if destructed, slightly related to Ref T315

This commit is contained in:
Klaus Basan
2018-09-07 18:35:22 +02:00
parent b1013b6c66
commit 837288b874
2 changed files with 8 additions and 0 deletions

View File

@@ -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(); }

View File

@@ -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();