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 | e80b1659772cac877f634d96396384a95b2c4e60 (patch) | |
tree | 0391f53da4cd035bb422d162fa2815ef6771e715 /net/server_event.lua | |
parent | 1d903e3442bbe5f4532229be4f9e3850eaf12244 (diff) | |
download | prosody-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.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 |