aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2016-01-02 20:40:34 +0000
committerMatthew Wild <mwild1@gmail.com>2016-01-02 20:40:34 +0000
commit3b1c2ebbd96a4da0baea1ede8edaae0a191aa7f4 (patch)
treed617f9afa351bdab3ef51879e1e4c999472273ce /net
parentc0d46cbf2a388233fc521743605c59a465e7acda (diff)
downloadprosody-3b1c2ebbd96a4da0baea1ede8edaae0a191aa7f4.tar.gz
prosody-3b1c2ebbd96a4da0baea1ede8edaae0a191aa7f4.zip
net.server_event: Add conn.type == 'server' for server sockets (fixes closeallservers() )
Diffstat (limited to 'net')
-rw-r--r--net/server_event.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index ec8af2a4..e5705ab5 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -614,6 +614,7 @@ local function handleserver( server, addr, port, pattern, listener, sslctx ) --
local interface = {
_connections = 0;
+ type = "server";
conn = server;
onconnect = listener.onconnect; -- will be called when new client connected
eventread = false; -- read event handler