aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_handler.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_handler.erl')
-rw-r--r--src/cowboy_handler.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_handler.erl b/src/cowboy_handler.erl
index 7791fe2..7fb2dd5 100644
--- a/src/cowboy_handler.erl
+++ b/src/cowboy_handler.erl
@@ -54,7 +54,7 @@ execute(Req, Env=#{handler := Handler, handler_opts := HandlerOpts}) ->
terminate(Reason, Req, State, Handler) ->
case erlang:function_exported(Handler, terminate, 3) of
true ->
- Handler:terminate(Reason, cowboy_req:lock(Req), State);
+ Handler:terminate(Reason, Req, State);
false ->
ok
end.