From 59d3f550031755b3d4e10ebb9521f534e3c7d5aa Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 17 Nov 2014 23:59:00 +0100 Subject: [PATCH] Set smWasEnableAtLeastOnce before sync point to allow users to add stanza acknowledged listeners in ConnectionListener.authenticated(). --- .../main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9201616c9..cd14c2e2e 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 @@ -1095,8 +1095,8 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { // Mark this a aon-resumable stream by setting smSessionId to null smSessionId = null; } - smEnabledSyncPoint.reportSuccess(); smWasEnabledAtLeastOnce = true; + smEnabledSyncPoint.reportSuccess(); LOGGER.fine("Stream Management (XEP-198): succesfully enabled"); break; case Failed.ELEMENT: