This commit is contained in:
Klaus Basan
2018-12-07 12:53:39 +01:00
parent 32b2059d1a
commit a1bea413f4
3 changed files with 8 additions and 8 deletions

View File

@@ -240,7 +240,7 @@ namespace BlackCore
QPointer<CNetworkWatchdog> myself(this); QPointer<CNetworkWatchdog> myself(this);
QTimer::singleShot(0, this, [ = ] QTimer::singleShot(0, this, [ = ]
{ {
if (!myself) { return; } if (!sApp || sApp->isShuttingDown() || !myself) { return; }
this->setNetworkAccessibility(accessibility); this->setNetworkAccessibility(accessibility);
}); });
return; return;

View File

@@ -187,7 +187,7 @@ namespace BlackCore
std::atomic_bool m_online { true }; std::atomic_bool m_online { true };
std::atomic_bool m_internetAccessible { true }; std::atomic_bool m_internetAccessible { true };
std::atomic_bool m_dbAccessible { true }; std::atomic_bool m_dbAccessible { true };
std::atomic_bool m_lastClientPingSuccess { true }; //!< ping swift DB client service std::atomic_bool m_lastClientPingSuccess { true }; //!< ping swift DB client service, real HTTP response
std::atomic_bool m_checkDbAccessibility { true }; std::atomic_bool m_checkDbAccessibility { true };
std::atomic_bool m_checkSharedUrl { true }; std::atomic_bool m_checkSharedUrl { true };
std::atomic_bool m_checkInProgress { false }; //!< a check is currently in progress std::atomic_bool m_checkInProgress { false }; //!< a check is currently in progress