aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-01 19:41:49 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-01 19:41:49 +0000
commit18ecc84111bf02125312025638bc1a597141c098 (patch)
tree36a53e44d9a8460991b9a83f5df872a09f3c74e1
parentprosodyctl: Put 'pidfile' in quotes to make more clear that it is the literal name of the option (diff)
downloadprosody-18ecc84111bf02125312025638bc1a597141c098.tar.xz
prosody-18ecc84111bf02125312025638bc1a597141c098.zip
net.httpserver: Pass correct connection object to disconnect listener, which fixes a small leak
-rw-r--r--net/httpserver.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/httpserver.lua b/net/httpserver.lua
index 0ed679093..ddb4475c2 100644
--- a/net/httpserver.lua
+++ b/net/httpserver.lua
@@ -230,7 +230,7 @@ function destroy_request(request)
end
request.handler.close()
if request.conn then
- listener.disconnect(request.conn, "closed");
+ listener.disconnect(request.handler, "closed");
end
end
end