be more careful with resetting the stream id

This commit is contained in:
Daniel Gultsch 2016-01-29 12:09:55 +01:00
parent 28ebf927fb
commit c416948f8b
1 changed files with 1 additions and 2 deletions

View File

@ -549,7 +549,7 @@ public class XmppConnection implements Runnable {
} else if (nextTag.isStart("failed")) { } else if (nextTag.isStart("failed")) {
tagReader.readElement(nextTag); tagReader.readElement(nextTag);
Log.d(Config.LOGTAG, account.getJid().toBareJid().toString() + ": resumption failed"); Log.d(Config.LOGTAG, account.getJid().toBareJid().toString() + ": resumption failed");
streamId = null; resetStreamId();
if (account.getStatus() != Account.State.ONLINE) { if (account.getStatus() != Account.State.ONLINE) {
sendBindRequest(); sendBindRequest();
} }
@ -1290,7 +1290,6 @@ public class XmppConnection implements Runnable {
} }
return; return;
} else { } else {
resetStreamId();
if (tagWriter.isActive()) { if (tagWriter.isActive()) {
tagWriter.finish(); tagWriter.finish();
try { try {