24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-08 21:43:07 +02:00

Close also legacy sessions that were half connected (thanks to Evgeniy Khramtsov)(EJAB-1165)

This commit is contained in:
Badlop 2010-02-16 12:44:01 +01:00
parent 35c9c95e4b
commit bc69b96e4c

View File

@ -460,11 +460,11 @@ 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, U, StateData#state.server, R, Info),
Res1 = jlib:make_result_iq_reply(El),
Res = setelement(4, Res1, []),
send_element(StateData, Res),
ejabberd_sm:open_session(
SID, U, StateData#state.server, R, Info),
change_shaper(StateData, JID),
{Fs, Ts} = ejabberd_hooks:run_fold(
roster_get_subscription_lists,