aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-05 19:42:56 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-05 19:42:56 +0100
commit08a1dbd27f868ee5cdfb7efdd98cc3ea5d3bdffb (patch)
treebf7a78ddd160d7f5330c995241b081d396f53e0d /net
parenteabe7a306ee287e1292f4720405df0a7f1c9775b (diff)
downloadprosody-08a1dbd27f868ee5cdfb7efdd98cc3ea5d3bdffb.tar.gz
prosody-08a1dbd27f868ee5cdfb7efdd98cc3ea5d3bdffb.zip
net.httpserver: Don't log that a request has been left open if it is destroyed
Diffstat (limited to 'net')
-rw-r--r--net/httpserver.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/httpserver.lua b/net/httpserver.lua
index b9ac7971..b16e7f3a 100644
--- a/net/httpserver.lua
+++ b/net/httpserver.lua
@@ -96,7 +96,7 @@ local function call_callback(request, err)
local response = callback(request.method, request.body and t_concat(request.body), request);
if response then
- if response == true then
+ 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