From 0069e2465d5b8343e06775a3f85693869a05f3c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 17 Mar 2011 22:06:39 +0100 Subject: Remove a superfluous terminate call in error_terminate. --- src/cowboy_http_protocol.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/cowboy_http_protocol.erl') 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}) -> -- cgit v1.2.3