Software /
code /
prosody
Changeset
4675:80f2d952d4c5
net.server_select: Remove server from _server table when closing
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 24 Apr 2012 15:42:35 +0100 |
parents | 4674:f44726a910a0 |
children | 4676:1ce2ff9ec313 |
files | net/server_select.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_select.lua Tue Apr 24 15:40:00 2012 +0100 +++ b/net/server_select.lua Tue Apr 24 15:42:35 2012 +0100 @@ -202,6 +202,7 @@ socket:close( ) _sendlistlen = removesocket( _sendlist, socket, _sendlistlen ) _readlistlen = removesocket( _readlist, socket, _readlistlen ) + _server[ip..":"..serverport] = nil; _socketlist[ socket ] = nil handler = nil socket = nil