diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-11-01 19:41:49 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-11-01 19:41:49 +0000 |
commit | 18ecc84111bf02125312025638bc1a597141c098 (patch) | |
tree | 36a53e44d9a8460991b9a83f5df872a09f3c74e1 /net/httpserver.lua | |
parent | 76eeca426023e289f7cf8876378cb2745a16e4cb (diff) | |
download | prosody-18ecc84111bf02125312025638bc1a597141c098.tar.gz prosody-18ecc84111bf02125312025638bc1a597141c098.zip |
net.httpserver: Pass correct connection object to disconnect listener, which fixes a small leak
Diffstat (limited to 'net/httpserver.lua')
-rw-r--r-- | net/httpserver.lua | 2 |
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 |