diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2015-04-21 14:14:17 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2015-04-25 11:17:57 +0200 |
| commit | cda7a6f4a7da8945538d64b3d56f0bab543d55c4 (patch) | |
| tree | a5558b048004e8ec6c0a058f4e5c418f525ee64a /daemon/watchconnector.cpp | |
| parent | 0ad6b1fc702b56bed96077d540366a9a96903da7 (diff) | |
Rename setIncreasedReconnectTimer
to scheduleReconnect
Diffstat (limited to 'daemon/watchconnector.cpp')
| -rw-r--r-- | daemon/watchconnector.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/watchconnector.cpp b/daemon/watchconnector.cpp index 891625b..a4bfb64 100644 --- a/daemon/watchconnector.cpp +++ b/daemon/watchconnector.cpp @@ -164,7 +164,7 @@ void WatchConnector::handleWatch(const QString &name, const QString &address) bool btOff = host.hostMode() == QBluetoothLocalDevice::HostPoweredOff; if (btOff) { qCDebug(l) << "Bluetooth switched off."; - setIncreasedReconnectTimer(); + scheduleReconnect(); return; } @@ -333,11 +333,11 @@ void WatchConnector::onDisconnected() writeData.clear(); // 3rd time around - user is not here, do not bother with resending last message } - setIncreasedReconnectTimer(); + scheduleReconnect(); } -void WatchConnector::setIncreasedReconnectTimer() +void WatchConnector::scheduleReconnect() { if (reconnectTimer.interval() < 10 * RECONNECT_TIMEOUT) { reconnectTimer.setInterval(reconnectTimer.interval() + RECONNECT_TIMEOUT); |
