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
commitfccbe43c0b137e71e89573f6f85f65200a9c33c8 (patch)
tree0391f53da4cd035bb422d162fa2815ef6771e715 /net/server_event.lua
parent95346f2e847d5cd1ee68dcd87d8b24fcd70f648e (diff)
downloadprosody-fccbe43c0b137e71e89573f6f85f65200a9c33c8.tar.gz
prosody-fccbe43c0b137e71e89573f6f85f65200a9c33c8.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