The code-path which checks whether the server requires an "xmpp-session" was untested and therefore the connection-callback handler was triggered twice with the state XMPP_CONN_CONNECT. This happened if the server supports stream-management and requires a session.
The code-path which checks whether the server requires an "xmpp-session" was untested and therefore the connection-callback handler was triggered twice with the state
XMPP_CONN_CONNECT
. This happened if the server supports stream-management and requires a session.Reported via https://github.com/profanity-im/profanity/issues/1954
Fixup of c7d410f38b7e51db71eff065c00d3b9d9c895a53