aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-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