aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/dtls_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-01-05 11:26:56 +0100
committerIngela Anderton Andin <[email protected]>2018-04-24 09:39:12 +0200
commit8dcfffd4fb8520239b189357e81122d4fdacb42d (patch)
treefc9bfcda0edead0d6593e6f5abc9c5dce660744e /lib/ssl/src/dtls_connection.erl
parentc171aa54085853afe4bf7097c9b47a0fa9a72378 (diff)
downloadotp-8dcfffd4fb8520239b189357e81122d4fdacb42d.tar.gz
otp-8dcfffd4fb8520239b189357e81122d4fdacb42d.tar.bz2
otp-8dcfffd4fb8520239b189357e81122d4fdacb42d.zip
ssl: Prepare to replace ssl:ssl_accept with ssl:handshake
Diffstat (limited to 'lib/ssl/src/dtls_connection.erl')
-rw-r--r--lib/ssl/src/dtls_connection.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ssl/src/dtls_connection.erl b/lib/ssl/src/dtls_connection.erl
index 7bc7fc3fc6..59548fa61e 100644
--- a/lib/ssl/src/dtls_connection.erl
+++ b/lib/ssl/src/dtls_connection.erl
@@ -73,8 +73,7 @@ start_fsm(Role, Host, Port, Socket, {#ssl_options{erl_dist = false},_, Tracker}
{ok, Pid} = dtls_connection_sup:start_child([Role, Host, Port, Socket,
Opts, User, CbInfo]),
{ok, SslSocket} = ssl_connection:socket_control(?MODULE, Socket, Pid, CbModule, Tracker),
- ok = ssl_connection:handshake(SslSocket, Timeout),
- {ok, SslSocket}
+ ssl_connection:handshake(SslSocket, Timeout)
catch
error:{badmatch, {error, _} = Error} ->
Error