From be0728553e1183627a4058c652ad793ea6746ef8 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 23 May 2012 02:20:32 +0100 Subject: net.server_select: Don't close client connections when closing a server (it wasn't working anyway) --- net/server_select.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'net') diff --git a/net/server_select.lua b/net/server_select.lua index b5d99539..de637f70 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -191,13 +191,7 @@ wrapserver = function( listeners, socket, ip, serverport, pattern, sslctx, maxco 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 ) -- cgit v1.2.3