mirror of
https://github.com/bjc/prosody.git
synced 2025-04-06 22:57:38 +03:00
net.httpserver: Fix traceback when sending response to a destroyed request
This commit is contained in:
parent
37db6110c3
commit
d6b19a1b1b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue