From: Evgeny Khramtsov Date: Tue, 30 Jul 2019 17:57:32 +0000 (+0300) Subject: Improve pattern matching X-Git-Tag: 19.08~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15f50f53312137f416782842b81ba6a2d95f9f02;p=ejabberd Improve pattern matching --- diff --git a/src/mod_stream_mgmt.erl b/src/mod_stream_mgmt.erl index 9786304a5..4fd778899 100644 --- a/src/mod_stream_mgmt.erl +++ b/src/mod_stream_mgmt.erl @@ -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",