1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-14 23:54:49 +02:00

tcp: do not flush after writing the SM ack

There is no need to flush here, as writePackets() will eventually
flush the data out.
This commit is contained in:
Florian Schmaus 2020-04-07 23:13:03 +02:00
parent bfff412112
commit 51b167c0d4

View file

@ -1445,7 +1445,6 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
// from the server in order to drain it
if (unacknowledgedStanzas.size() == UNACKKNOWLEDGED_STANZAS_QUEUE_SIZE_HIGH_WATER_MARK) {
writer.write(AckRequest.INSTANCE.toXML().toString());
writer.flush();
}
try {
// It is important the we put the stanza in the unacknowledged stanza