From 6b75c819d80654c3ef3120552d4649b8abfde206 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 22 Dec 2018 13:00:40 +0100 Subject: [PATCH] log number of unhandled iq callbacks after resume --- .../java/eu/siacs/conversations/xmpp/XmppConnection.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java index c525ff6b9..6355f6fa6 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java @@ -591,10 +591,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); } }