aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-02-19 03:21:20 +0000
committerMatthew Wild <mwild1@gmail.com>2010-02-19 03:21:20 +0000
commit7148417dbb8ead54ab628d20da2ce70edd6dfb98 (patch)
tree17da36768c4afb28c5613000d577222eb8ac505e /net
parent73ce21ca9f4301e430675b894fab4805fcc0359b (diff)
downloadprosody-7148417dbb8ead54ab628d20da2ce70edd6dfb98.tar.gz
prosody-7148417dbb8ead54ab628d20da2ce70edd6dfb98.zip
net.http: Don't re-destroy a request when the connection is closed
Diffstat (limited to 'net')
-rw-r--r--net/http.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/http.lua b/net/http.lua
index a5acf46d..863efc6c 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -43,6 +43,7 @@ local function request_reader(request, data, startpos)
elseif request.state ~= "completed" then
-- Error.. connection was closed prematurely
request.callback("connection-closed", 0, request);
+ return;
end
destroy_request(request);
request.body = nil;