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
commit23da873661b1d5c3d0524bbcb01a37d1aad1a5ad (patch)
tree50837278d08df8b15498524706dea74c27cec12a
parent55f710ce2f704bfa79745d7b9b911f497d5fc552 (diff)
downloadprosody-23da873661b1d5c3d0524bbcb01a37d1aad1a5ad.tar.gz
prosody-23da873661b1d5c3d0524bbcb01a37d1aad1a5ad.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;