mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +01:00
One more place where we need to handle socket field not being available
This commit is contained in:
parent
8824a912ef
commit
9542cca0db
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user