diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-04-10 20:41:03 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-04-10 20:41:03 +0100 |
commit | fccbe43c0b137e71e89573f6f85f65200a9c33c8 (patch) | |
tree | 0391f53da4cd035bb422d162fa2815ef6771e715 | |
parent | 95346f2e847d5cd1ee68dcd87d8b24fcd70f648e (diff) | |
download | prosody-fccbe43c0b137e71e89573f6f85f65200a9c33c8.tar.gz prosody-fccbe43c0b137e71e89573f6f85f65200a9c33c8.zip |
net.server_event: Don't close servers if just quitting the loop once
-rw-r--r-- | net/server_event.lua | 4 |
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 |