mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:07:20 +08:00
Ref T160, further formatting
This commit is contained in:
@@ -35,9 +35,9 @@ namespace BlackCore
|
||||
connect(&m_updateTimer, &QTimer::timeout, this, &CNetworkWatchdog::doWork);
|
||||
}
|
||||
|
||||
void CNetworkWatchdog::setDbAccessibility(bool available)
|
||||
void CNetworkWatchdog::setDbAccessibility(bool accessible)
|
||||
{
|
||||
m_dbAccessible = available;
|
||||
m_dbAccessible = accessible;
|
||||
m_internetAccessible = m_internetAccessible && m_networkAccessible;
|
||||
QTimer::singleShot(0, &m_updateTimer, [this] { this->m_updateTimer.start(); }); // restart
|
||||
}
|
||||
@@ -52,7 +52,7 @@ namespace BlackCore
|
||||
int CNetworkWatchdog::triggerCheck()
|
||||
{
|
||||
if (!this->doWorkCheck()) return false; // senseless
|
||||
if (m_checkInProgress) return -1;
|
||||
if (m_checkInProgress) { return -1; }
|
||||
|
||||
const int n = this->getCheckCount();
|
||||
QTimer::singleShot(0, this, &CNetworkWatchdog::doWork);
|
||||
|
||||
Reference in New Issue
Block a user