aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
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
commit1eb8d252ea82a641caaf4996d1a9c31f62db83a2 (patch)
treed4eff75c62859178f13669343ed0dc9047ee0750 /net/server_select.lua
parent581d2c49579973ed043c5435332ac552d07738cb (diff)
downloadprosody-1eb8d252ea82a641caaf4996d1a9c31f62db83a2.tar.gz
prosody-1eb8d252ea82a641caaf4996d1a9c31f62db83a2.zip
net.server_select: Close all connections when quitting (and not just stepping), matches server_event
Diffstat (limited to 'net/server_select.lua')
-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