aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-09-03 15:44:05 -0400
committerMatthew Wild <mwild1@gmail.com>2011-09-03 15:44:05 -0400
commite824455e4038120ea46a4d3e3e07be85b0f516c3 (patch)
tree50837278d08df8b15498524706dea74c27cec12a
parent8b9ca0ac7689b6bb809cf05e4165556d1c9823d1 (diff)
downloadprosody-e824455e4038120ea46a4d3e3e07be85b0f516c3.tar.gz
prosody-e824455e4038120ea46a4d3e3e07be85b0f516c3.zip
net.httpclient_listener: util.httpstream now always expects to be called with nil data, so call even when the socket closed cleanly
-rw-r--r--net/httpclient_listener.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/httpclient_listener.lua b/net/httpclient_listener.lua
index 00481afa..c4e3c153 100644
--- a/net/httpclient_listener.lua
+++ b/net/httpclient_listener.lua
@@ -52,7 +52,7 @@ end
function httpclient.ondisconnect(conn, err)
local request = requests[conn];
- if request and err ~= "closed" then
+ if request and request.conn then
request:reader(nil);
end
requests[conn] = nil;