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
parent76eeca426023e289f7cf8876378cb2745a16e4cb (diff)
downloadprosody-18ecc84111bf02125312025638bc1a597141c098.tar.gz
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 0ed67909..ddb4475c 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