Permalink
Browse files

Merge branch 'stop_listener-spec' of git://github.com/s1n4/cowboy

  • Loading branch information...
2 parents 6315da0 + 4ff6b02 commit e7afe1f381f93f0c4df3680ff55dae111e864c9f @essen essen committed Feb 21, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 manual/cowboy.md
  2. +1 −1 src/cowboy.erl
View
@@ -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
@@ -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).

0 comments on commit e7afe1f

Please sign in to comment.