log number of unhandled iq callbacks after resume

This commit is contained in:
Daniel Gultsch 2018-12-22 13:00:40 +01:00
parent d552f50ab4
commit 6b75c819d8
1 changed files with 4 additions and 3 deletions

View File

@ -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);
}
}