aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-12-22 18:23:40 +0100
committerIngela Anderton Andin <[email protected]>2019-01-08 16:26:23 +0100
commit1dd3d4cbe22054e2bdccdfd442dcc6724ee51245 (patch)
treeb791351ccebee9e351044db3815f0d4a6a053368 /lib
parentf0ea49125815ec9197ffb6c74e20ebb5f10732d4 (diff)
downloadotp-1dd3d4cbe22054e2bdccdfd442dcc6724ee51245.tar.gz
otp-1dd3d4cbe22054e2bdccdfd442dcc6724ee51245.tar.bz2
otp-1dd3d4cbe22054e2bdccdfd442dcc6724ee51245.zip
ssl: Fix two invalid gen_statem returns
Diffstat (limited to 'lib')
-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 390bdf0810..0e2a677273 100644
--- a/lib/ssl/src/ssl_connection.erl
+++ b/lib/ssl/src/ssl_connection.erl
@@ -1177,7 +1177,7 @@ handle_call({shutdown, read_write = How}, From, StateName,
ok ->
{next_state, StateName, State#state{terminated = true}, [{reply, From, ok}]};
Error ->
- {stop, StateName, State#state{terminated = true}, [{reply, From, Error}]}
+ {stop_and_reply, {shutdown, normal}, {reply, From, Error}, State#state{terminated = true}}
end
catch
throw:Return ->
@@ -1190,7 +1190,7 @@ handle_call({shutdown, How0}, From, StateName,
ok ->
{next_state, StateName, State, [{reply, From, ok}]};
Error ->
- {stop, StateName, State, [{reply, From, Error}]}
+ {stop_and_reply, {shutdown, normal}, {reply, From, Error}, State}
end;
handle_call({recv, _N, _Timeout}, From, _,
#state{socket_options =