fixed ping time out after session resume
This commit is contained in:
parent
8f92d8d109
commit
13f9f23946
|
@ -259,6 +259,7 @@ public class XmppConnection implements Runnable {
|
||||||
RequestPacket r = new RequestPacket(smVersion);
|
RequestPacket r = new RequestPacket(smVersion);
|
||||||
tagWriter.writeStanzaAsync(r);
|
tagWriter.writeStanzaAsync(r);
|
||||||
} else if (nextTag.isStart("resumed")) {
|
} else if (nextTag.isStart("resumed")) {
|
||||||
|
lastPaketReceived = SystemClock.elapsedRealtime();
|
||||||
Log.d(LOGTAG,account.getJid()+": session resumed");
|
Log.d(LOGTAG,account.getJid()+": session resumed");
|
||||||
tagReader.readElement(nextTag);
|
tagReader.readElement(nextTag);
|
||||||
sendPing();
|
sendPing();
|
||||||
|
|
Loading…
Reference in a new issue