aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy.erl
diff options
context:
space:
mode:
authorSina Samavati <[email protected]>2014-02-16 00:16:58 +0330
committerSina Samavati <[email protected]>2014-02-16 00:16:58 +0330
commitb72c420d58e8478950436c1005d7e69966df79f1 (patch)
tree88329dae36a35242ba9074ee3fd2cae63461ba99 /src/cowboy.erl
parent903594bb8709db4fa98697ecf8adbdccabf64a83 (diff)
downloadcowboy-b72c420d58e8478950436c1005d7e69966df79f1.tar.gz
cowboy-b72c420d58e8478950436c1005d7e69966df79f1.tar.bz2
cowboy-b72c420d58e8478950436c1005d7e69966df79f1.zip
Fix stop_listener/1 spec
Diffstat (limited to 'src/cowboy.erl')
-rw-r--r--src/cowboy.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy.erl b/src/cowboy.erl
index 610a33a..3e838d1 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).