mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +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; }
|
||||
|
||||
QDateTime dbModelsLatestChange = m_dbModelsLatestChange.value(cache.getDescription());
|
||||
if (dbModelsLatestChange.isValid() && dbModelsLatestChange <= cacheTs)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (dbModelsLatestChange.isValid() && dbModelsLatestChange <= cacheTs) { return; }
|
||||
|
||||
m_dbModelsLatestChange[cache.getDescription()] = cacheTs;
|
||||
const CSimulatorInfo sims = cache.simulatorsWithInitializedCache(); // sims ever used
|
||||
@@ -143,7 +140,7 @@ namespace BlackCore
|
||||
|
||||
bool CBackgroundDataUpdater::doWorkCheck() const
|
||||
{
|
||||
if (!sApp || !sApp->hasWebDataServices()) { return false; }
|
||||
if (!sApp || sApp->isShuttingDown() || !sApp->hasWebDataServices()) { return false; }
|
||||
if (!isEnabled()) { return false; }
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user