Changeset

4904:5d2ff4627b72

net.server_select: Don't close client connections when closing a server (it wasn't working anyway)
author Matthew Wild <mwild1@gmail.com>
date Wed, 23 May 2012 02:20:32 +0100
parents 4903:c576d2175fa4
children 4905:274ef78aa173
files net/server_select.lua
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_select.lua	Wed May 23 02:19:11 2012 +0100
+++ b/net/server_select.lua	Wed May 23 02:20:32 2012 +0100
@@ -191,13 +191,7 @@
 	handler.remove = function( )
 		connections = connections - 1
 	end
-	handler.close = function( )
-		for _, handler in pairs( _socketlist ) do
-			if handler.serverport == serverport then
-				handler.disconnect( handler, "server closed" )
-				handler:close( true )
-			end
-		end
+	handler.close = function()
 		socket:close( )
 		_sendlistlen = removesocket( _sendlist, socket, _sendlistlen )
 		_readlistlen = removesocket( _readlist, socket, _readlistlen )