diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-05-23 02:20:32 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-05-23 02:20:32 +0100 |
commit | d227ac95d57ad802292bd6b5172b1db00011a1d6 (patch) | |
tree | 693bf51d94cd45cfa744ddfef47b477dab0d2490 | |
parent | 62ecc088dbf1f32842bf175d308625172d7d0e09 (diff) | |
download | prosody-d227ac95d57ad802292bd6b5172b1db00011a1d6.tar.gz prosody-d227ac95d57ad802292bd6b5172b1db00011a1d6.zip |
net.server_select: Don't close client connections when closing a server (it wasn't working anyway)
-rw-r--r-- | net/server_select.lua | 8 |
1 files changed, 1 insertions, 7 deletions
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 ) |