fix logging wrong variable for failed resume

This commit is contained in:
Daniel Gultsch 2016-05-08 21:53:45 +02:00
parent 6f3b8f64d1
commit 488780d2ce

View File

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