log number of unhandled iq callbacks after resume
This commit is contained in:
parent
d552f50ab4
commit
6b75c819d8
|
@ -591,10 +591,11 @@ public class XmppConnection implements Runnable {
|
||||||
boolean accountUiNeedsRefresh = false;
|
boolean accountUiNeedsRefresh = false;
|
||||||
synchronized (NotificationService.CATCHUP_LOCK) {
|
synchronized (NotificationService.CATCHUP_LOCK) {
|
||||||
if (mWaitingForSmCatchup.compareAndSet(true, false)) {
|
if (mWaitingForSmCatchup.compareAndSet(true, false)) {
|
||||||
int count = mSmCatchupMessageCounter.get();
|
final int messageCount = mSmCatchupMessageCounter.get();
|
||||||
Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": SM catchup complete (" + count + ")");
|
final int pendingIQs = packetCallbacks.size();
|
||||||
|
Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": SM catchup complete (messages=" + messageCount + ", pending IQs="+pendingIQs+")");
|
||||||
accountUiNeedsRefresh = true;
|
accountUiNeedsRefresh = true;
|
||||||
if (count > 0) {
|
if (messageCount > 0) {
|
||||||
mXmppConnectionService.getNotificationService().finishBacklog(true, account);
|
mXmppConnectionService.getNotificationService().finishBacklog(true, account);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue