aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_event.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-04-10 20:41:03 +0100
committerMatthew Wild <mwild1@gmail.com>2018-04-10 20:41:03 +0100
commite80b1659772cac877f634d96396384a95b2c4e60 (patch)
tree0391f53da4cd035bb422d162fa2815ef6771e715 /net/server_event.lua
parent1d903e3442bbe5f4532229be4f9e3850eaf12244 (diff)
downloadprosody-e80b1659772cac877f634d96396384a95b2c4e60.tar.gz
prosody-e80b1659772cac877f634d96396384a95b2c4e60.zip
net.server_event: Don't close servers if just quitting the loop once
Diffstat (limited to 'net/server_event.lua')
-rw-r--r--net/server_event.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 9efb7dad..d40b388f 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -774,7 +774,9 @@ end
local function setquitting(yes)
if yes then
-- Quit now
- closeallservers();
+ if yes ~= "once" then
+ closeallservers();
+ end
base:loopexit();
end
end