be more careful with resetting the stream id
This commit is contained in:
parent
28ebf927fb
commit
c416948f8b
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue