Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix stop_listener/1 spec #673

Merged
merged 2 commits into from

2 participants

@s1n4

No description provided.

@essen
Owner

The manual also needs to be fixed.

@essen essen added the 0.10 label
@s1n4

@essen fixed.

@essen
Owner

Looks good, I marked this to be merged and will do whenever my env is clean. Thanks.

@essen essen merged commit 4ff6b02 into ninenines:master
@essen
Owner

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 15, 2014
  1. @s1n4

    Fix stop_listener/1 spec

    s1n4 authored
Commits on Feb 20, 2014
  1. @s1n4
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +1 −1  manual/cowboy.md
  2. +1 −1  src/cowboy.erl
View
2  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()
View
2  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).
Something went wrong with that request. Please try again.