Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
  • Loading branch information
IngelaAndin committed Jan 27, 2025
2 parents debbc7b + e6ced7f commit 8388209
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/ssl/src/ssl_gen_statem.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1210,8 +1210,13 @@ terminate({shutdown, cancel_hs} = Reason , _StateName,
handle_trusted_certs_db(State0),
CancelAlert = ?ALERT_REC(?WARNING, ?USER_CANCELED),
CloseAlert = ?ALERT_REC(?WARNING, ?CLOSE_NOTIFY),
State = Connection:send_alert(CancelAlert, State0),
Connection:send_alert(CloseAlert, State),
try Connection:send_alert(CancelAlert, State0) of
State ->
catch Connection:send_alert(CloseAlert, State)
catch
_:_ ->
ok
end,
Connection:close(Reason, Socket, Transport, undefined);
terminate(Reason, _StateName, #state{static_env = #static_env{transport_cb = Transport,
protocol_cb = Connection,
Expand Down

0 comments on commit 8388209

Please sign in to comment.