aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/tls_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2019-05-14 17:08:26 +0200
committerIngela Anderton Andin <[email protected]>2019-05-15 10:55:14 +0200
commit319dcabd1104b2a2befc46b9f49446a5f6485008 (patch)
tree68baab0f54514a863f35f7842c6654c57fa471e3 /lib/ssl/src/tls_connection.erl
parent12f93cc0a3615e414b3e1df0602f3548fb31c05c (diff)
downloadotp-319dcabd1104b2a2befc46b9f49446a5f6485008.tar.gz
otp-319dcabd1104b2a2befc46b9f49446a5f6485008.tar.bz2
otp-319dcabd1104b2a2befc46b9f49446a5f6485008.zip
ssl: Refactor of OTP 22 code due to patch OTP-15823
Diffstat (limited to 'lib/ssl/src/tls_connection.erl')
-rw-r--r--lib/ssl/src/tls_connection.erl8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/ssl/src/tls_connection.erl b/lib/ssl/src/tls_connection.erl
index 0b477b7c81..61281a3fb2 100644
--- a/lib/ssl/src/tls_connection.erl
+++ b/lib/ssl/src/tls_connection.erl
@@ -289,12 +289,8 @@ handle_protocol_record(#ssl_tls{type = ?APPLICATION_DATA, fragment = Data}, Stat
{stop, _, _} = Stop->
Stop;
{Record, State1} ->
- case next_event(StateName, Record, State1) of
- {next_state, StateName, State, Actions} ->
- ssl_connection:hibernate_after(StateName, State, Actions);
- {stop, _, _} = Stop ->
- Stop
- end
+ {next_state, StateName, State, Actions} = next_event(StateName, Record, State1),
+ ssl_connection:hibernate_after(StateName, State, Actions)
end;
%%% TLS record protocol level handshake messages
handle_protocol_record(#ssl_tls{type = ?HANDSHAKE, fragment = Data},