aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 8e9313464..0daa61054 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -3569,6 +3569,9 @@ void dedicated_server_loop(Server &server, bool &kill)
}
server.step(steplen);
+ if (server.getShutdownRequested() || kill)
+ break;
+
/*
Profiler
*/