From 15f50f53312137f416782842b81ba6a2d95f9f02 Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Tue, 30 Jul 2019 20:57:32 +0300 Subject: Improve pattern matching --- src/mod_stream_mgmt.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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", -- cgit v1.2.3