aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_connection.erl
diff options
context:
space:
mode:
authorIngela Andin <[email protected]>2018-07-11 09:56:16 +0200
committerGitHub <[email protected]>2018-07-11 09:56:16 +0200
commit0da48905b544052287c42ced84b4a2274ae56d84 (patch)
tree6b6373e2e3a02d9f01389e8279f33b4bdf661701 /lib/ssl/src/ssl_connection.erl
parentd6df0f288852e460ed3fc4475bb3dcb0065e2d61 (diff)
parent8c757080aa5e4df486f9d7091878cf493ec74bc9 (diff)
downloadotp-0da48905b544052287c42ced84b4a2274ae56d84.tar.gz
otp-0da48905b544052287c42ced84b4a2274ae56d84.tar.bz2
otp-0da48905b544052287c42ced84b4a2274ae56d84.zip
Merge pull request #1869 from IngelaAndin/ingela/ssl/unexpected-call/ERL-664/OTP-15174
ssl: Improve error handling
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 d88704676f..064350e6de 100644
--- a/lib/ssl/src/ssl_connection.erl
+++ b/lib/ssl/src/ssl_connection.erl
@@ -634,8 +634,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(),