aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-02-19 03:22:42 +0000
committerMatthew Wild <mwild1@gmail.com>2010-02-19 03:22:42 +0000
commit4936167a323b44c1768d6339a3fa32b448a96456 (patch)
tree5c4a173f08ec93de9cabe8a73fd0f0827de2a6d5
parent463a83ee3fdf733f3d726874c8671f3f17a19ea0 (diff)
downloadprosody-4936167a323b44c1768d6339a3fa32b448a96456.tar.gz
prosody-4936167a323b44c1768d6339a3fa32b448a96456.zip
net.http: destroy_request(): Remove update for new server API, pass request.handler instead of request.conn to ondisconnect
-rw-r--r--net/http.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/http.lua b/net/http.lua
index b03b357c..f4a9da51 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -212,8 +212,9 @@ end
function destroy_request(request)
if request.conn then
- request.handler.close()
- listener.ondisconnect(request.conn, "closed");
+ request.conn = nil;
+ request.handler:close()
+ listener.ondisconnect(request.handler, "closed");
end
end