diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-10-26 22:18:11 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-10-26 22:18:11 +0200 |
commit | b6248fe4b98afa8750dea3ca33541ffd80341c41 (patch) | |
tree | e2b5bf9b40301d198b6aec8c518dcf999e53d74a /src/main | |
parent | c5cad43be468b32d98e279f550606bd1287170b5 (diff) |
don't leave low timeout mode prematurely
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java index 73c9a1e12..e694bf3f0 100644 --- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java +++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java @@ -737,9 +737,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); @@ -752,6 +749,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) { |