Diff

net/httpserver.lua @ 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
parent 2021:43b7c0980d23
child 2130:828e161cdfc7
child 2761:5d3ad9a6b3be
child 2835:ff5039708b19
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