aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-12-06 17:41:29 +0100
committerIngela Anderton Andin <[email protected]>2018-12-12 23:44:59 +0100
commit8fc53b814e1c998caca0647ebec3b9f3471b6279 (patch)
tree83f235e69bc411f2cb820461f71b7daa390eace3 /lib/ssl/src/ssl_connection.erl
parent8439c7a6a6afcfaa6fea17bfa12bf7a693e81f8e (diff)
downloadotp-8fc53b814e1c998caca0647ebec3b9f3471b6279.tar.gz
otp-8fc53b814e1c998caca0647ebec3b9f3471b6279.tar.bz2
otp-8fc53b814e1c998caca0647ebec3b9f3471b6279.zip
ssl: Clean code
Rename Connection:handle_common_event Connection:handle_protocol_record removing use of unnecessary argument and making code easier to understand.
Diffstat (limited to 'lib/ssl/src/ssl_connection.erl')
-rw-r--r--lib/ssl/src/ssl_connection.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl
index bab13211df..5dea5827c6 100644
--- a/lib/ssl/src/ssl_connection.erl
+++ b/lib/ssl/src/ssl_connection.erl
@@ -1160,7 +1160,7 @@ handle_common_event(internal, {handshake, {Handshake, Raw}}, StateName,
{next_state, StateName, State#state{tls_handshake_history = HsHist},
[{next_event, internal, Handshake}]};
handle_common_event(internal, {protocol_record, TLSorDTLSRecord}, StateName, State, Connection) ->
- Connection:handle_common_event(internal, TLSorDTLSRecord, StateName, State);
+ Connection:handle_protocol_record(TLSorDTLSRecord, StateName, State);
handle_common_event(timeout, hibernate, _, _, _) ->
{keep_state_and_data, [hibernate]};
handle_common_event(internal, {application_data, Data}, StateName, State0, Connection) ->