Changeset

8751:469f78fe1c3e

net.server_event: Don't close servers if just quitting the loop once
author Matthew Wild <mwild1@gmail.com>
date Tue, 10 Apr 2018 20:41:03 +0100
parents 8750:7ae09468ad92
children 8752:8f2da579a790
files net/server_event.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_event.lua	Tue Apr 10 22:43:13 2018 +0200
+++ b/net/server_event.lua	Tue Apr 10 20:41:03 2018 +0100
@@ -774,7 +774,9 @@
 local function setquitting(yes)
 	if yes then
 		-- Quit now
-		closeallservers();
+		if yes ~= "once" then
+			closeallservers();
+		end
 		base:loopexit();
 	end
 end