diff options
author | Loïc Hoguin <[email protected]> | 2018-12-22 18:23:40 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-12-22 18:23:40 +0100 |
commit | 0b48b8cac8f75a58a3154ae26f45ebd5e238c8f8 (patch) | |
tree | 6a1d14c9229926e1557f6b4e0c1e070d02220165 /lib | |
parent | 55bf32b64e1a4bbed588544077a109fc07e1f02d (diff) | |
download | otp-0b48b8cac8f75a58a3154ae26f45ebd5e238c8f8.tar.gz otp-0b48b8cac8f75a58a3154ae26f45ebd5e238c8f8.tar.bz2 otp-0b48b8cac8f75a58a3154ae26f45ebd5e238c8f8.zip |
ssl: Fix two invalid gen_statem returns
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssl/src/ssl_connection.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl index 41d853977e..b9162a2d3b 100644 --- a/lib/ssl/src/ssl_connection.erl +++ b/lib/ssl/src/ssl_connection.erl @@ -1193,7 +1193,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 -> @@ -1206,7 +1206,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 = |