From 827faaf5f98c8c4fdb8eb322202a2c5fb44b3b1c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 1 Jan 2017 19:33:38 +0100 Subject: server_epoll: Handle the argument to setquitting like server_select --- net/server_epoll.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'net/server_epoll.lua') 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 -- cgit v1.2.3