net/server_select.lua
changeset 8752 fb3cd6b2263b
parent 8731 41c959c5c84b
child 8784 53178b6ba589
--- a/net/server_select.lua	Tue Apr 10 20:39:05 2018 +0100
+++ b/net/server_select.lua	Tue Apr 10 20:40:07 2018 +0100
@@ -889,7 +889,7 @@
 local quitting;
 
 local function setquitting(quit)
-	quitting = not not quit;
+	quitting = quit;
 end
 
 loop = function(once) -- this is the main loop of the program
@@ -958,7 +958,7 @@
 			end
 		end
 	until quitting;
-	if once and quitting == "once" then quitting = nil; return; end
+	if quitting == "once" then quitting = nil; return; end
 	closeall();
 	return "quitting"
 end