From 7897fca876788fad7eafd6c3e8264e8a2144564e Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 18 Feb 2015 11:59:45 +0100 Subject: [PATCH] Add comment about Stream Management's unacked stanzas queue --- .../main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java | 2 ++ 1 file changed, 2 insertions(+) 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 be3253191..71d84b3b1 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 @@ -1284,6 +1284,8 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { writer.flush(); } try { + // It is important the we put the stanza in the unacknowledged stanza + // queue before we put it on the wire unacknowledgedStanzas.put(packet); } catch (InterruptedException e) {