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
1 changed files with 0 additions and 1 deletions

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