Browse Source

Fix stop_listener/1 spec

Sina Samavati 11 years ago
parent
commit
b72c420d58
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/cowboy.erl

+ 1 - 1
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).