25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

One more place where we need to handle socket field not being available

This commit is contained in:
Paweł Chmielowski 2022-02-02 16:26:39 +01:00
parent 8824a912ef
commit 9542cca0db

View File

@ -305,10 +305,10 @@ process_terminated(#{sid := SID, jid := JID, user := U, server := S, resource :=
end, end,
bounce_message_queue(SID, JID), bounce_message_queue(SID, JID),
State1; State1;
process_terminated(#{socket := Socket, process_terminated(#{stop_reason := {tls, _}} = State, Reason) ->
stop_reason := {tls, _}} = State, Reason) ->
?WARNING_MSG("(~ts) Failed to secure c2s connection: ~ts", ?WARNING_MSG("(~ts) Failed to secure c2s connection: ~ts",
[xmpp_socket:pp(Socket), format_reason(State, Reason)]), [case State of #{socket := Socket} -> xmpp_socket:pp(Socket); _ -> <<"unknown">> end,
format_reason(State, Reason)]),
State; State;
process_terminated(State, _Reason) -> process_terminated(State, _Reason) ->
State. State.