aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-03-17 22:06:39 +0100
committerLoïc Hoguin <[email protected]>2011-03-17 22:06:39 +0100
commit0069e2465d5b8343e06775a3f85693869a05f3c4 (patch)
treeaee6fd99a872e476b9eb5b983b93928e212caabc /src
parent786a05a129d9aeff7f88deaf6d9e4f06b935b665 (diff)
downloadcowboy-0069e2465d5b8343e06775a3f85693869a05f3c4.tar.gz
cowboy-0069e2465d5b8343e06775a3f85693869a05f3c4.tar.bz2
cowboy-0069e2465d5b8343e06775a3f85693869a05f3c4.zip
Remove a superfluous terminate call in error_terminate.
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_http_protocol.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cowboy_http_protocol.erl b/src/cowboy_http_protocol.erl
index 3a8aac7..d3d41f9 100644
--- a/src/cowboy_http_protocol.erl
+++ b/src/cowboy_http_protocol.erl
@@ -118,8 +118,7 @@ handler_loop(Req, State=#state{handler={Handler, Opts}}) ->
-spec error_terminate(Code::http_status(), State::#state{}) -> ok.
error_terminate(Code, State) ->
- reply(Code, [], [], State#state{connection=close}),
- terminate(State).
+ reply(Code, [], [], State#state{connection=close}).
-spec terminate(State::#state{}) -> ok.
terminate(#state{socket=Socket, transport=Transport}) ->