Changeset

2066:b3a640892549

net.httpserver: Pass correct connection object to disconnect listener, which fixes a small leak
author Matthew Wild <mwild1@gmail.com>
date Sun, 01 Nov 2009 19:41:49 +0000
parents 2065:c384ae8ee17a
children 2067:0ed6369605bf
files net/httpserver.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/httpserver.lua	Sat Oct 31 17:15:20 2009 +0000
+++ b/net/httpserver.lua	Sun Nov 01 19:41:49 2009 +0000
@@ -230,7 +230,7 @@
 		end
 		request.handler.close()
 		if request.conn then
-			listener.disconnect(request.conn, "closed");
+			listener.disconnect(request.handler, "closed");
 		end
 	end
 end