net.httpserver: Fix traceback when sending response to a destroyed request

This commit is contained in:
Matthew Wild 2009-04-23 21:04:56 +01:00
parent 37db6110c3
commit d6b19a1b1b

View file

@ -99,7 +99,7 @@ local function call_callback(request, err)
if response == true and not request.destroyed then
-- Keep connection open, we will reply later
log("warn", "Request %s left open, on_destroy is %s", request.id, tostring(request.on_destroy));
else
elseif response ~= true then
-- Assume response
send_response(request, response);
destroy_request(request);