diff options
author | Loïc Hoguin <[email protected]> | 2018-12-22 18:23:40 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2019-01-08 16:26:23 +0100 |
commit | 1dd3d4cbe22054e2bdccdfd442dcc6724ee51245 (patch) | |
tree | b791351ccebee9e351044db3815f0d4a6a053368 | |
parent | f0ea49125815ec9197ffb6c74e20ebb5f10732d4 (diff) | |
download | otp-1dd3d4cbe22054e2bdccdfd442dcc6724ee51245.tar.gz otp-1dd3d4cbe22054e2bdccdfd442dcc6724ee51245.tar.bz2 otp-1dd3d4cbe22054e2bdccdfd442dcc6724ee51245.zip |
ssl: Fix two invalid gen_statem returns
-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 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 = |