Software /
code /
prosody
Diff
net/server_select.lua @ 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 |
parent | 4429:8e02ba75ef06 |
child | 4808:07d0a3a75c8a |
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