aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua8
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