diff options
author | Ingela Anderton Andin <[email protected]> | 2017-12-15 10:34:14 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-12-15 16:17:02 +0100 |
commit | bec1c5e3521623a005cdde5e10666e02a3019ec4 (patch) | |
tree | 851af3c8451e5c7a3183936f80ff7ce05bfc916c /lib | |
parent | 9b61f4f4b26a77ca08b2a4a4f7776aac58bdff53 (diff) | |
download | otp-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.erl | 2 |
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}; |