aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-08-09 09:28:48 +0200
committerIngela Anderton Andin <[email protected]>2018-08-09 09:28:48 +0200
commit2c19a6010e9576e1979216863b5f63ebe302bf69 (patch)
treea6b127e3647ecd67a19e55ade547f4d199349d91 /lib/ssl/src/ssl_connection.erl
parentd3eebb798cd0aac25f3b66e98aca3a0340017479 (diff)
parentca9f2fe073b587e70b5502c87be3eca6f72ddd57 (diff)
downloadotp-2c19a6010e9576e1979216863b5f63ebe302bf69.tar.gz
otp-2c19a6010e9576e1979216863b5f63ebe302bf69.tar.bz2
otp-2c19a6010e9576e1979216863b5f63ebe302bf69.zip
Merge branch 'maint'
Diffstat (limited to 'lib/ssl/src/ssl_connection.erl')
-rw-r--r--lib/ssl/src/ssl_connection.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl
index 90d6d98058..6e98baf984 100644
--- a/lib/ssl/src/ssl_connection.erl
+++ b/lib/ssl/src/ssl_connection.erl
@@ -650,6 +650,8 @@ init(_Type, _Event, _State, _Connection) ->
tls_connection | dtls_connection) ->
gen_statem:state_function_result().
%%--------------------------------------------------------------------
+error({call, From}, {close, _}, State, _Connection) ->
+ stop_and_reply(normal, {reply, From, ok}, State);
error({call, From}, _Msg, State, _Connection) ->
{next_state, ?FUNCTION_NAME, State, [{reply, From, {error, closed}}]}.