From b72c420d58e8478950436c1005d7e69966df79f1 Mon Sep 17 00:00:00 2001 From: Sina Samavati Date: Sun, 16 Feb 2014 00:16:58 +0330 Subject: [PATCH 1/2] Fix stop_listener/1 spec --- src/cowboy.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cowboy.erl b/src/cowboy.erl index 610a33a1..3e838d19 100644 --- a/src/cowboy.erl +++ b/src/cowboy.erl @@ -67,7 +67,7 @@ start_spdy(Ref, NbAcceptors, TransOpts, ProtoOpts) ranch_ssl, TransOpts2, cowboy_spdy, ProtoOpts). %% @doc Stop a listener. --spec stop_listener(ranch:ref()) -> ok. +-spec stop_listener(ranch:ref()) -> ok | {error, not_found}. stop_listener(Ref) -> ranch:stop_listener(Ref). From 4ff6b0238b9d79066a2adc19ef89c2ddc77fd3cc Mon Sep 17 00:00:00 2001 From: Sina Samavati Date: Fri, 21 Feb 2014 00:31:38 +0330 Subject: [PATCH 2/2] Fix cowboy:stop_listener/1 spec in manual --- manual/cowboy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manual/cowboy.md b/manual/cowboy.md index c2ef8597..0eab0f8e 100644 --- a/manual/cowboy.md +++ b/manual/cowboy.md @@ -76,7 +76,7 @@ Exports > Start listening for SPDY connections. Returns the pid for this > listener's supervisor. -### stop_listener(Ref) -> ok +### stop_listener(Ref) -> ok | {error, not_found} > Types: > * Ref = ranch:ref()