diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-02-19 03:22:42 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-02-19 03:22:42 +0000 |
commit | 4936167a323b44c1768d6339a3fa32b448a96456 (patch) | |
tree | 5c4a173f08ec93de9cabe8a73fd0f0827de2a6d5 | |
parent | 463a83ee3fdf733f3d726874c8671f3f17a19ea0 (diff) | |
download | prosody-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.lua | 5 |
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 |