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 | 827faaf5f98c8c4fdb8eb322202a2c5fb44b3b1c (patch) | |
tree | 6be2ae8c3d116561531ec257f470648719362bc4 | |
parent | 2099654c0c0aacfb78ce19571d708fb1018b6e9d (diff) | |
download | prosody-827faaf5f98c8c4fdb8eb322202a2c5fb44b3b1c.tar.gz prosody-827faaf5f98c8c4fdb8eb322202a2c5fb44b3b1c.zip |
server_epoll: Handle the argument to setquitting like server_select
-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 |