]> granicus.if.org Git - ejabberd/commitdiff
Improve pattern matching
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Tue, 30 Jul 2019 17:57:32 +0000 (20:57 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Tue, 30 Jul 2019 17:57:32 +0000 (20:57 +0300)
src/mod_stream_mgmt.erl

index 9786304a5041e5a6d9cade2f18a7e528b8b75916..4fd7788995a4cd4c4274d4d7fd01218772506ff7 100644 (file)
@@ -250,7 +250,7 @@ c2s_handle_info(#{mgmt_state := pending, lang := Lang,
     Err = xmpp:serr_connection_timeout(Txt, Lang),
     Mod:stop(State#{mgmt_state => timeout,
                    stop_reason => {stream, {out, Err}}});
-c2s_handle_info(#{jid := JID} = State, {_Ref, {resume, OldState}}) ->
+c2s_handle_info(State, {_Ref, {resume, #{jid := JID} = OldState}}) ->
     %% This happens if the resume_session/1 request timed out; the new session
     %% now receives the late response.
     ?DEBUG("Received old session state for ~s after failed resumption",