fix logging wrong variable for failed resume
This commit is contained in:
parent
6f3b8f64d1
commit
488780d2ce
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue