Browse Source

Remove a superfluous terminate call in error_terminate.

Loïc Hoguin 14 years ago
parent
commit
0069e2465d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/cowboy_http_protocol.erl

+ 1 - 2
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}) ->