aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-05-23 02:20:32 +0100
committerMatthew Wild <mwild1@gmail.com>2012-05-23 02:20:32 +0100
commitbe0728553e1183627a4058c652ad793ea6746ef8 (patch)
tree693bf51d94cd45cfa744ddfef47b477dab0d2490 /net/server_select.lua
parent5d6f4c712480d04b60bbed1f7b0efeddf43616a7 (diff)
downloadprosody-be0728553e1183627a4058c652ad793ea6746ef8.tar.gz
prosody-be0728553e1183627a4058c652ad793ea6746ef8.zip
net.server_select: Don't close client connections when closing a server (it wasn't working anyway)
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua8
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 )