From 13c03a7e3b957491301487183ed0913c88263880 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') 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