From 4936167a323b44c1768d6339a3fa32b448a96456 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 19 Feb 2010 03:22:42 +0000 Subject: net.http: destroy_request(): Remove update for new server API, pass request.handler instead of request.conn to ondisconnect --- net/http.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'net') 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 -- cgit v1.2.3