do not pipeline first SM request because that might fail when resume fails
This commit is contained in:
parent
c97c5def2c
commit
010b341251
|
@ -581,6 +581,7 @@ public class XmppConnection implements Runnable {
|
||||||
final RequestPacket r = new RequestPacket(smVersion);
|
final RequestPacket r = new RequestPacket(smVersion);
|
||||||
tagWriter.writeStanzaAsync(r);
|
tagWriter.writeStanzaAsync(r);
|
||||||
} else if (nextTag.isStart("resumed")) {
|
} else if (nextTag.isStart("resumed")) {
|
||||||
|
this.tagWriter.writeStanzaAsync(new RequestPacket(smVersion));
|
||||||
lastPacketReceived = SystemClock.elapsedRealtime();
|
lastPacketReceived = SystemClock.elapsedRealtime();
|
||||||
final Element resumed = tagReader.readElement(nextTag);
|
final Element resumed = tagReader.readElement(nextTag);
|
||||||
final String h = resumed.getAttribute("h");
|
final String h = resumed.getAttribute("h");
|
||||||
|
@ -860,7 +861,6 @@ public class XmppConnection implements Runnable {
|
||||||
this.mSmCatchupMessageCounter.set(0);
|
this.mSmCatchupMessageCounter.set(0);
|
||||||
this.mWaitingForSmCatchup.set(true);
|
this.mWaitingForSmCatchup.set(true);
|
||||||
this.tagWriter.writeStanzaAsync(resume);
|
this.tagWriter.writeStanzaAsync(resume);
|
||||||
this.tagWriter.writeStanzaAsync(new RequestPacket(smVersion));
|
|
||||||
} else if (needsBinding) {
|
} else if (needsBinding) {
|
||||||
if (this.streamFeatures.hasChild("bind")) {
|
if (this.streamFeatures.hasChild("bind")) {
|
||||||
sendBindRequest();
|
sendBindRequest();
|
||||||
|
|
Loading…
Reference in a new issue