aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-07-11 10:05:38 +0200
committerIngela Anderton Andin <[email protected]>2018-07-11 10:05:38 +0200
commite7cd3ad8224e4a755169176e0420d1b77c814272 (patch)
treed7562b719e2fcc953bc3253b8548637bff689cae /lib/ssl/src/ssl_connection.erl
parente36538a04a4b78bde04e08141b295213b970aa2c (diff)
parent0da48905b544052287c42ced84b4a2274ae56d84 (diff)
downloadotp-e7cd3ad8224e4a755169176e0420d1b77c814272.tar.gz
otp-e7cd3ad8224e4a755169176e0420d1b77c814272.tar.bz2
otp-e7cd3ad8224e4a755169176e0420d1b77c814272.zip
Merge branch 'maint'
Diffstat (limited to 'lib/ssl/src/ssl_connection.erl')
-rw-r--r--lib/ssl/src/ssl_connection.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl
index e06613e4f6..bd17f19d10 100644
--- a/lib/ssl/src/ssl_connection.erl
+++ b/lib/ssl/src/ssl_connection.erl
@@ -650,8 +650,8 @@ init(_Type, _Event, _State, _Connection) ->
tls_connection | dtls_connection) ->
gen_statem:state_function_result().
%%--------------------------------------------------------------------
-error({call, From}, Msg, State, Connection) ->
- handle_call(Msg, From, ?FUNCTION_NAME, State, Connection).
+error({call, From}, _Msg, State, _Connection) ->
+ {next_state, ?FUNCTION_NAME, State, [{reply, From, {error, closed}}]}.
%%--------------------------------------------------------------------
-spec hello(gen_statem:event_type(),