Changeset

2810:85e253d6c4cf

net.http: destroy_request(): Pass request.handler to disconnect() listener to fix small leak
author Matthew Wild <mwild1@gmail.com>
date Wed, 03 Mar 2010 20:52:30 +0000
parents 2809:1a7b5b775275
children 2811:11df731e1b87
files net/http.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/http.lua	Fri Feb 19 03:21:50 2010 +0000
+++ b/net/http.lua	Wed Mar 03 20:52:30 2010 +0000
@@ -213,7 +213,7 @@
 function destroy_request(request)
 	if request.conn then
 		request.handler.close()
-		listener.disconnect(request.conn, "closed");
+		listener.disconnect(request.handler, "closed");
 	end
 end