aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch_listener.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-12-21 17:04:42 +0100
committerLoïc Hoguin <[email protected]>2012-12-21 17:04:42 +0100
commit058ad09e8b2c885a0888bda47459acd32ece917e (patch)
treedcbf07093880e6b4315c86336b92236ee310fa72 /src/ranch_listener.erl
parent7f4261d1d83dde90be93d3615693b44969f6b446 (diff)
parent66618454e0925ebd46b6905a1957206b2f2663e9 (diff)
downloadranch-058ad09e8b2c885a0888bda47459acd32ece917e.tar.gz
ranch-058ad09e8b2c885a0888bda47459acd32ece917e.tar.bz2
ranch-058ad09e8b2c885a0888bda47459acd32ece917e.zip
Merge branch 'fix/listener_sup_failures' of git://github.com/keynslug/syncranch
Diffstat (limited to 'src/ranch_listener.erl')
-rw-r--r--src/ranch_listener.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ranch_listener.erl b/src/ranch_listener.erl
index 83ee658..52e4c32 100644
--- a/src/ranch_listener.erl
+++ b/src/ranch_listener.erl
@@ -101,6 +101,7 @@ set_protocol_options(ServerPid, ProtoOpts) ->
%% @private
init([Ref, MaxConns, ProtoOpts]) ->
+ ok = ranch_server:insert_listener(Ref, self()),
{ok, #state{ref=Ref, max_conns=MaxConns, proto_opts=ProtoOpts}}.
%% @private