From e2d393d00d996d9e4c9d45ec366996aebc648a29 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Tue, 7 Apr 2020 23:13:50 +0200 Subject: [PATCH] tcp: add newline for better readability --- .../main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java | 1 + 1 file changed, 1 insertion(+) diff --git a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java index 9c2c1a686..315f19830 100644 --- a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java +++ b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java @@ -1446,6 +1446,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { if (unacknowledgedStanzas.size() == UNACKKNOWLEDGED_STANZAS_QUEUE_SIZE_HIGH_WATER_MARK) { writer.write(AckRequest.INSTANCE.toXML().toString()); } + try { // It is important the we put the stanza in the unacknowledged stanza // queue before we put it on the wire