diff options
author | Kim Alvefur <zash@zash.se> | 2017-01-01 19:33:38 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-01-01 19:33:38 +0100 |
commit | 13c03a7e3b957491301487183ed0913c88263880 (patch) | |
tree | 6be2ae8c3d116561531ec257f470648719362bc4 /net/server_epoll.lua | |
parent | 667850792bce5d874cf7c03af587bf2a88ada6ec (diff) | |
download | prosody-13c03a7e3b957491301487183ed0913c88263880.tar.gz prosody-13c03a7e3b957491301487183ed0913c88263880.zip |
server_epoll: Handle the argument to setquitting like server_select
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r-- | net/server_epoll.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua index 5ca9f327..d5f9d266 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -612,8 +612,12 @@ end local quitting = nil; -- Signal main loop about shutdown via above upvalue -local function setquitting() - quitting = "quitting"; +local function setquitting(quit) + if quit then + quitting = "quitting"; + else + quitting = nil; + end end -- Main loop |