aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2016-01-02 20:42:53 +0000
committerMatthew Wild <mwild1@gmail.com>2016-01-02 20:42:53 +0000
commit6d5bf3651160efa69fb89bd2f92b11f7d69f4034 (patch)
treecb3e8bce329accde5bcfa6c8138f4868a7aa9c58 /net
parentb70c2783801a3fa01d498432f74de66a770636cd (diff)
parente5691fed7972bf6c0d4e0e494f79850322b794c4 (diff)
downloadprosody-6d5bf3651160efa69fb89bd2f92b11f7d69f4034.tar.gz
prosody-6d5bf3651160efa69fb89bd2f92b11f7d69f4034.zip
Merge 0.10->trunk
Diffstat (limited to 'net')
-rw-r--r--net/server_event.lua1
-rw-r--r--net/server_select.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 9b1ffb25..67758664 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
diff --git a/net/server_select.lua b/net/server_select.lua
index 35dcb5a7..ced73074 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -934,6 +934,7 @@ loop = function(once) -- this is the main loop of the program
end
until quitting;
if once and quitting == "once" then quitting = nil; return; end
+ closeall();
return "quitting"
end