aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-10-20 20:04:16 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-10-20 20:04:16 +0200
commit10398cab5139eb04b3f572cd742bd81849d508b1 (patch)
tree7524f359edc6ef29100cf6962b362c8b978b6a23 /src/main/java/eu/siacs
parentf2696b66ba12f014617bc28c3db1c525f2bfe4f5 (diff)
don't leave low timeout mode prematurely
Diffstat (limited to 'src/main/java/eu/siacs')
-rw-r--r--src/main/java/eu/siacs/conversations/services/XmppConnectionService.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
index 08921516..a2e55af0 100644
--- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
@@ -636,9 +636,6 @@ public class XmppConnectionService extends Service {
} else {
int secs = (int) (pingTimeoutIn / 1000);
this.scheduleWakeUpCall(secs, account.getUuid().hashCode());
- if (mLowPingTimeoutMode.remove(account.getJid().toBareJid())) {
- Log.d(Config.LOGTAG,account.getJid().toBareJid()+": leaving low ping timeout mode");
- }
}
} else {
pingCandidates.add(account);
@@ -651,6 +648,9 @@ public class XmppConnectionService extends Service {
pingNow = true;
} else {
this.scheduleWakeUpCall((int) (msToNextPing / 1000), account.getUuid().hashCode());
+ if (mLowPingTimeoutMode.remove(account.getJid().toBareJid())) {
+ Log.d(Config.LOGTAG,account.getJid().toBareJid()+": leaving low ping timeout mode");
+ }
}
}
} else if (account.getStatus() == Account.State.OFFLINE) {