Skip to content

Commit

Permalink
do not pipeline first SM request because that might fail when resume …
Browse files Browse the repository at this point in the history
…fails
  • Loading branch information
iNPUTmice committed Mar 21, 2017
1 parent c97c5de commit 010b341
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ private void processStream() throws XmlPullParserException, IOException, NoSuchA
final RequestPacket r = new RequestPacket(smVersion);
tagWriter.writeStanzaAsync(r);
} else if (nextTag.isStart("resumed")) {
this.tagWriter.writeStanzaAsync(new RequestPacket(smVersion));
lastPacketReceived = SystemClock.elapsedRealtime();
final Element resumed = tagReader.readElement(nextTag);
final String h = resumed.getAttribute("h");
Expand Down Expand Up @@ -860,7 +861,6 @@ private void processStreamFeatures(final Tag currentTag)
this.mSmCatchupMessageCounter.set(0);
this.mWaitingForSmCatchup.set(true);
this.tagWriter.writeStanzaAsync(resume);
this.tagWriter.writeStanzaAsync(new RequestPacket(smVersion));
} else if (needsBinding) {
if (this.streamFeatures.hasChild("bind")) {
sendBindRequest();
Expand Down

0 comments on commit 010b341

Please sign in to comment.