mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-06-24 12:24:51 +02:00
Previously Smack would put messages in the unacknowledgedStanzas queue after it received the 'enabled' element, when it should do so right after sending the 'enable' stream element. Imagine a session where '-->' denotes "received from server" and '<--' "sent to server" <-- enable --> iq roster push set --> presence some presence <-- iq roster push result --> enabled then Smack would not add the iq roster push result stanza to the unacknowledgedStanzas queue. This fixes the issue by initializing the unacknowledgedStanzas queue when the writer thread encounters a 'Enable' stream element. The additional 'instanceof' invocation in the writer thread should not be a big performance issue, since the existing "instanceof Stanza" check should be the common case and the "instanceof Enable" is an exclusive alternative to this case. |
||
---|---|---|
.. | ||
BundleAndDefer.java | ||
BundleAndDeferCallback.java | ||
TCPInitializer.java | ||
XMPPTCPConnection.java | ||
XMPPTCPConnectionConfiguration.java |