From 3d713aefd4600ec3f6b2c9d6e25943af94f90972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 6 Mar 2015 14:46:58 +0100 Subject: Fix start_listener spec --- src/ranch.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ranch.erl') diff --git a/src/ranch.erl b/src/ranch.erl index e9d32ce..087d032 100644 --- a/src/ranch.erl +++ b/src/ranch.erl @@ -35,7 +35,7 @@ -export_type([ref/0]). -spec start_listener(ref(), non_neg_integer(), module(), any(), module(), any()) - -> {ok, pid()} | {error, badarg}. + -> supervisor:startchild_ret(). start_listener(Ref, NbAcceptors, Transport, TransOpts, Protocol, ProtoOpts) when is_integer(NbAcceptors) andalso is_atom(Transport) andalso is_atom(Protocol) -> -- cgit v1.2.3