mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Close also legacy sessions that were half connected (thanks to Evgeniy Khramtsov)(EJAB-1165)
This commit is contained in:
parent
23d008cd79
commit
8539a7d7ea
@ -451,10 +451,10 @@ wait_for_auth({xmlstreamelement, El}, StateData) ->
|
||||
Conn = get_conn_type(StateData),
|
||||
Info = [{ip, StateData#state.ip}, {conn, Conn},
|
||||
{auth_module, AuthModule}],
|
||||
ejabberd_sm:open_session(
|
||||
SID, exmpp_jid:make(U, StateData#state.server, R), Info),
|
||||
Res = exmpp_server_legacy_auth:success(El),
|
||||
send_element(StateData, Res),
|
||||
ejabberd_sm:open_session(
|
||||
SID, exmpp_jid:make(U, StateData#state.server, R), Info),
|
||||
change_shaper(StateData, JID),
|
||||
{Fs, Ts} = ejabberd_hooks:run_fold(
|
||||
roster_get_subscription_lists,
|
||||
|
Loading…
Reference in New Issue
Block a user