aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-12-27 20:42:57 +0100
committerChristian Schneppe <christian@pix-art.de>2018-12-27 20:42:57 +0100
commit55058cca9d8ed5343bc4398fe0ea87633d8a485d (patch)
tree4f0162707fe56f0aa037a0f849776082897fd6ac /src/main/java
parentae2b61afb6c9284d53bffd7af3f84ba55ee2056b (diff)
log number of unhandled iq callbacks after resume
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/xmpp/XmppConnection.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
index bea8a496c..f364a0155 100644
--- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
+++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
@@ -617,10 +617,11 @@ public class XmppConnection implements Runnable {
boolean accountUiNeedsRefresh = false;
synchronized (NotificationService.CATCHUP_LOCK) {
if (mWaitingForSmCatchup.compareAndSet(true, false)) {
- int count = mSmCatchupMessageCounter.get();
- Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": SM catchup complete (" + count + ")");
+ final int messageCount = mSmCatchupMessageCounter.get();
+ final int pendingIQs = packetCallbacks.size();
+ Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": SM catchup complete (messages=" + messageCount + ", pending IQs=" + pendingIQs + ")");
accountUiNeedsRefresh = true;
- if (count > 0) {
+ if (messageCount > 0) {
mXmppConnectionService.getNotificationService().finishBacklog(true, account);
}
}