# HG changeset patch # User Kim Alvefur # Date 1483295618 -3600 # Node ID 12609aee3b3bbf94afaebe49a365f85ee03e4339 # Parent 03081bd5c5bbd3d7e773a63548cdbaaba3026f00 server_epoll: Handle the argument to setquitting like server_select diff -r 03081bd5c5bb -r 12609aee3b3b net/server_epoll.lua --- a/net/server_epoll.lua Sun Jan 01 19:32:54 2017 +0100 +++ b/net/server_epoll.lua Sun Jan 01 19:33:38 2017 +0100 @@ -612,8 +612,12 @@ 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