Software /
code /
prosody
Diff
net/server_event.lua @ 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 |
parent | 6860:153a2e49c4f7 |
child | 7042:20ac6972b9aa |
child | 7224:07a4c807a94a |
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