aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/dtls_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-11-17 11:31:08 +0100
committerIngela Anderton Andin <[email protected]>2017-11-24 11:45:59 +0100
commit7a9037b9f796912cce1b04910fcf90b3e474f612 (patch)
tree769ac2c82dd23fffe21c594cd3fcc3e608d43aeb /lib/ssl/src/dtls_connection.erl
parenteb2da85bf1f29000cd3c1b2f6dfbfcb5d6aec016 (diff)
downloadotp-7a9037b9f796912cce1b04910fcf90b3e474f612.tar.gz
otp-7a9037b9f796912cce1b04910fcf90b3e474f612.tar.bz2
otp-7a9037b9f796912cce1b04910fcf90b3e474f612.zip
ssl: Use genstamtem properly
Diffstat (limited to 'lib/ssl/src/dtls_connection.erl')
-rw-r--r--lib/ssl/src/dtls_connection.erl8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/ssl/src/dtls_connection.erl b/lib/ssl/src/dtls_connection.erl
index 15eb39e716..1c55e370cb 100644
--- a/lib/ssl/src/dtls_connection.erl
+++ b/lib/ssl/src/dtls_connection.erl
@@ -232,8 +232,6 @@ next_event(StateName, Record,
#alert{} = Alert ->
{next_state, StateName, State0, [{next_event, internal, Alert} | Actions]}
end.
-handle_call(Event, From, StateName, State) ->
- ssl_connection:handle_call(Event, From, StateName, State, ?MODULE).
handle_common_event(internal, #alert{} = Alert, StateName,
#state{negotiated_version = Version} = State) ->
@@ -470,8 +468,8 @@ error(enter, _, State) ->
{keep_state, State};
error({call, From}, {start, _Timeout}, {Error, State}) ->
{stop_and_reply, normal, {reply, From, {error, Error}}, State};
-error({call, From}, Msg, State) ->
- handle_call(Msg, From, ?FUNCTION_NAME, State);
+error({call, _} = Call, Msg, State) ->
+ ssl_connection:?FUNCTION_NAME(Call, Msg, State, ?MODULE);
error(_, _, _) ->
{keep_state_and_data, [postpone]}.
@@ -864,7 +862,7 @@ handle_info(new_cookie_secret, StateName,
CookieInfo#{current_cookie_secret => dtls_v1:cookie_secret(),
previous_cookie_secret => Secret}}};
handle_info(Msg, StateName, State) ->
- ssl_connection:handle_info(Msg, StateName, State).
+ ssl_connection:StateName(info, Msg, State, ?MODULE).
handle_state_timeout(flight_retransmission_timeout, StateName,
#state{flight_state = {retransmit, NextTimeout}} = State0) ->