Ref T367, Ref T400 global setup flags for web and file reading

This commit is contained in:
Klaus Basan
2018-10-13 01:09:58 +02:00
parent ffc903de34
commit 9dfc3808c1
4 changed files with 53 additions and 32 deletions

View File

@@ -294,7 +294,7 @@ namespace BlackCore
if (!sApp || sApp->isShuttingDown()) { return; }
if (!force && !this->isSwiftDbAccessible()) { return; }
const CGlobalSetup gs = sApp->getGlobalSetup();
if (!gs.wasLoaded()) { return; }
if (!gs.wasLoadedFromWeb()) { return; }
const CUrl pingUrl = gs.getDbClientPingServiceUrl(type);
sApp->getFromNetwork(pingUrl, { this, &CNetworkWatchdog::replyPingClientService });
}