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 a68e7e108..df0166879 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 @@ -1494,13 +1494,8 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { *

* * @param listener the listener to add. - * @throws StreamManagementNotEnabledException if Stream Management is not enabled. */ - public void addStanzaAcknowledgedListener(PacketListener listener) throws StreamManagementNotEnabledException { - // Prevent users from adding callbacks that will never get removed - if (!smWasEnabledAtLeastOnce) { - throw new StreamManagementException.StreamManagementNotEnabledException(); - } + public void addStanzaAcknowledgedListener(PacketListener listener) { stanzaAcknowledgedListeners.add(listener); }