0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 04:10:24 +00:00

Remove a superfluous terminate call in error_terminate.

This commit is contained in:
Loïc Hoguin 2011-03-17 22:06:39 +01:00
parent 786a05a129
commit 0069e2465d

View file

@ -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}) ->