mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Merge branch 'stop_listener-spec' of git://github.com/s1n4/cowboy
This commit is contained in:
commit
e7afe1f381
2 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -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).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue