mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-22 20:47:57 +01:00
96bb37f924
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. |
||
---|---|---|
.. | ||
src | ||
build.gradle |