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

XEP-0198: Set #state.conn field on session resume

This commit is contained in:
Holger Weiss 2014-10-12 19:44:35 +02:00
parent 97fa57c360
commit 1ccc0d8bcb

View File

@ -2943,7 +2943,8 @@ inherit_session_state(#state{user = U, server = S} = StateData, ResumeID) ->
{auth_module, StateData#state.auth_module}], {auth_module, StateData#state.auth_module}],
ejabberd_sm:open_session(NewSID, U, S, R, ejabberd_sm:open_session(NewSID, U, S, R,
Priority, Info), Priority, Info),
{ok, StateData#state{sid = NewSID, {ok, StateData#state{conn = Conn,
sid = NewSID,
jid = OldStateData#state.jid, jid = OldStateData#state.jid,
resource = OldStateData#state.resource, resource = OldStateData#state.resource,
pres_t = OldStateData#state.pres_t, pres_t = OldStateData#state.pres_t,