1
0
Fork 1

fix logging wrong variable for failed resume

This commit is contained in:
Daniel Gultsch 2016-05-08 21:53:45 +02:00
parent 3b028be6e8
commit 203d9b338f

View file

@ -544,7 +544,7 @@ public class XmppConnection implements Runnable {
Element failed = tagReader.readElement(nextTag);
try {
final int serverCount = Integer.parseInt(failed.getAttribute("h"));
Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": resumption failed but server acknowledged stanza #"+h);
Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": resumption failed but server acknowledged stanza #"+serverCount);
acknowledgeStanzaUpTo(serverCount);
} catch (NumberFormatException | NullPointerException e) {
Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": resumption failed");