mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 10:45:37 +08:00
Return background updater functions when shutting down
This commit is contained in:
committed by
Mathew Sutcliffe
parent
0dfe6f69fe
commit
2a8e2331a3
@@ -88,10 +88,7 @@ namespace BlackCore
|
|||||||
if (!cacheTs.isValid()) { return; }
|
if (!cacheTs.isValid()) { return; }
|
||||||
|
|
||||||
QDateTime dbModelsLatestChange = m_dbModelsLatestChange.value(cache.getDescription());
|
QDateTime dbModelsLatestChange = m_dbModelsLatestChange.value(cache.getDescription());
|
||||||
if (dbModelsLatestChange.isValid() && dbModelsLatestChange <= cacheTs)
|
if (dbModelsLatestChange.isValid() && dbModelsLatestChange <= cacheTs) { return; }
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_dbModelsLatestChange[cache.getDescription()] = cacheTs;
|
m_dbModelsLatestChange[cache.getDescription()] = cacheTs;
|
||||||
const CSimulatorInfo sims = cache.simulatorsWithInitializedCache(); // sims ever used
|
const CSimulatorInfo sims = cache.simulatorsWithInitializedCache(); // sims ever used
|
||||||
@@ -143,7 +140,7 @@ namespace BlackCore
|
|||||||
|
|
||||||
bool CBackgroundDataUpdater::doWorkCheck() const
|
bool CBackgroundDataUpdater::doWorkCheck() const
|
||||||
{
|
{
|
||||||
if (!sApp || !sApp->hasWebDataServices()) { return false; }
|
if (!sApp || sApp->isShuttingDown() || !sApp->hasWebDataServices()) { return false; }
|
||||||
if (!isEnabled()) { return false; }
|
if (!isEnabled()) { return false; }
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user