Diff

net/server_select.lua @ 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
parent 4903:c576d2175fa4
child 4962:1d8fb12a9b2d
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 )