aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2016-01-02 20:42:20 +0000
committerMatthew Wild <mwild1@gmail.com>2016-01-02 20:42:20 +0000
commite5691fed7972bf6c0d4e0e494f79850322b794c4 (patch)
treed4eff75c62859178f13669343ed0dc9047ee0750 /net
parent3b1c2ebbd96a4da0baea1ede8edaae0a191aa7f4 (diff)
downloadprosody-e5691fed7972bf6c0d4e0e494f79850322b794c4.tar.gz
prosody-e5691fed7972bf6c0d4e0e494f79850322b794c4.zip
net.server_select: Close all connections when quitting (and not just stepping), matches server_event
Diffstat (limited to 'net')
-rw-r--r--net/server_select.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index 9c5225c6..87921df4 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -911,6 +911,7 @@ loop = function(once) -- this is the main loop of the program
socket_sleep( _sleeptime )
until quitting;
if once and quitting == "once" then quitting = nil; return; end
+ closeall();
return "quitting"
end