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

View File

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