mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
mod_client_state: Reset state on session resume
Don't restore the previous CSI state when a stream management session is resumed.
This commit is contained in:
parent
985b0a1933
commit
950aca380c
@ -199,8 +199,8 @@ c2s_authenticated_packet(C2SState, _) ->
|
||||
C2SState.
|
||||
|
||||
-spec c2s_copy_session(c2s_state(), c2s_state()) -> c2s_state().
|
||||
c2s_copy_session(C2SState, #{csi_state := State, csi_queue := Q}) ->
|
||||
C2SState#{csi_state => State, csi_queue => Q};
|
||||
c2s_copy_session(C2SState, #{csi_queue := Q}) ->
|
||||
C2SState#{csi_queue => Q};
|
||||
c2s_copy_session(C2SState, _) ->
|
||||
C2SState.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user