aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-24 15:42:35 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-24 15:42:35 +0100
commitea7212be3be670deda10d80f0d99abcb9d171f7a (patch)
treeba07110f199d3174bca26b5d7353241fcbc6ea79 /net/server_select.lua
parent112de122fd296ec8471b070ac26759b871444dbb (diff)
downloadprosody-ea7212be3be670deda10d80f0d99abcb9d171f7a.tar.gz
prosody-ea7212be3be670deda10d80f0d99abcb9d171f7a.zip
net.server_select: Remove server from _server table when closing
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index 8802f620..d6cfc1f8 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -202,6 +202,7 @@ wrapserver = function( listeners, socket, ip, serverport, pattern, sslctx, maxco
socket:close( )
_sendlistlen = removesocket( _sendlist, socket, _sendlistlen )
_readlistlen = removesocket( _readlist, socket, _readlistlen )
+ _server[ip..":"..serverport] = nil;
_socketlist[ socket ] = nil
handler = nil
socket = nil