summaryrefslogtreecommitdiff
path: root/src/mod_client_state.erl
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2017-06-21 01:05:46 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2017-06-21 01:05:46 +0200
commit950aca380c6931feb7c4d86e119de06c6aa0bb5a (patch)
treef4e8bc7db8dbaca88aaeaf9585bc1edbd48cccce /src/mod_client_state.erl
parentmod_stream_mgmt: Add missing function specs (diff)
mod_client_state: Reset state on session resume
Don't restore the previous CSI state when a stream management session is resumed.
Diffstat (limited to 'src/mod_client_state.erl')
-rw-r--r--src/mod_client_state.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_client_state.erl b/src/mod_client_state.erl
index f2fcb37e..efe6a260 100644
--- a/src/mod_client_state.erl
+++ b/src/mod_client_state.erl
@@ -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.