25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Improve pattern matching

This commit is contained in:
Evgeny Khramtsov 2019-07-30 20:57:32 +03:00
parent 3e4d7a98af
commit 15f50f5331

View 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",