aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-12-15 10:34:14 +0100
committerIngela Anderton Andin <[email protected]>2017-12-15 16:17:02 +0100
commitbec1c5e3521623a005cdde5e10666e02a3019ec4 (patch)
tree851af3c8451e5c7a3183936f80ff7ce05bfc916c /lib
parent9b61f4f4b26a77ca08b2a4a4f7776aac58bdff53 (diff)
downloadotp-bec1c5e3521623a005cdde5e10666e02a3019ec4.tar.gz
otp-bec1c5e3521623a005cdde5e10666e02a3019ec4.tar.bz2
otp-bec1c5e3521623a005cdde5e10666e02a3019ec4.zip
dtls: Correct return value in UDP listener initialization
Diffstat (limited to 'lib')
-rw-r--r--lib/ssl/src/dtls_udp_listener.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/dtls_udp_listener.erl b/lib/ssl/src/dtls_udp_listener.erl
index c789a32087..f2166a343e 100644
--- a/lib/ssl/src/dtls_udp_listener.erl
+++ b/lib/ssl/src/dtls_udp_listener.erl
@@ -84,7 +84,7 @@ init([Port, EmOpts, InetOptions, DTLSOptions]) ->
listner = Socket,
close = false}}
catch _:_ ->
- {error, closed}
+ {stop, {shutdown, {error, closed}}}
end.
handle_call({accept, _}, _, #state{close = true} = State) ->
{reply, {error, closed}, State};