Software /
code /
prosody
Changeset
7040:bdcea2dd33b8
net.server_event: Add conn.type == 'server' for server sockets (fixes closeallservers() )
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 02 Jan 2016 20:40:34 +0000 |
parents | 7039:138241cc1b3a |
children | 7041:aff786e7b4ce |
files | net/server_event.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_event.lua Wed Dec 23 11:17:26 2015 +0000 +++ b/net/server_event.lua Sat Jan 02 20:40:34 2016 +0000 @@ -614,6 +614,7 @@ local interface = { _connections = 0; + type = "server"; conn = server; onconnect = listener.onconnect; -- will be called when new client connected eventread = false; -- read event handler