aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_event.lua
diff options
context:
space:
mode:
Diffstat (limited to 'net/server_event.lua')
-rw-r--r--net/server_event.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index cefac3c6..1a073586 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -766,6 +766,14 @@ local closeallservers = function( arg )
end
end
+local function setquitting(yes)
+ if yes then
+ -- Quit now
+ closeallservers();
+ base:loopexit();
+ end
+end
+
return {
cfg = cfg,