Changeset

7796:12609aee3b3b

server_epoll: Handle the argument to setquitting like server_select
author Kim Alvefur <zash@zash.se>
date Sun, 01 Jan 2017 19:33:38 +0100
parents 7795:03081bd5c5bb
children 7797:d0c32d86724f
files net/server_epoll.lua
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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