diff options
author | Ingela Anderton Andin <[email protected]> | 2018-12-06 17:41:29 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2018-12-20 11:56:06 +0100 |
commit | 6218b8ca47dddc2216a9c252efe3f0ab38eafd4c (patch) | |
tree | 83f235e69bc411f2cb820461f71b7daa390eace3 /lib/ssl/src/ssl_connection.erl | |
parent | 80bf2fc85178ef011b67437f612d627f4e290e68 (diff) | |
download | otp-6218b8ca47dddc2216a9c252efe3f0ab38eafd4c.tar.gz otp-6218b8ca47dddc2216a9c252efe3f0ab38eafd4c.tar.bz2 otp-6218b8ca47dddc2216a9c252efe3f0ab38eafd4c.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.erl | 2 |
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) -> |