1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-25 07:42:06 +01: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