diff options
Diffstat (limited to 'src/ranch_listener.erl')
-rw-r--r-- | src/ranch_listener.erl | 1 |
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 |