Allow a forced update of the setup reader

When the network is down it can happen the bootstrap file request is not yet timed out but we use our own time out.
In that case we check the cached data upfront by faking a failed web read.
This commit is contained in:
Klaus Basan
2018-12-04 02:53:05 +01:00
parent 40afedcaed
commit 3c20590293
5 changed files with 32 additions and 12 deletions

View File

@@ -202,6 +202,11 @@ namespace BlackCore
m_shutdown = true;
}
void CSetupReader::forceAvailabilityUpdate()
{
this->manageSetupAvailability(false, false); // fake a failed web read
}
void CSetupReader::readSetup()
{
const CStatusMessageList msgs(this->triggerReadSetup());