From: sfan5 Date: Sun, 19 Mar 2017 17:17:59 +0000 (+0100) Subject: Fix /shutdown or ^C no longer causing server exit X-Git-Tag: 0.4.16~367 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=525d2a0d511bc9e9f3691af6ed2f5284dd205e33;p=oweals%2Fminetest.git Fix /shutdown or ^C no longer causing server exit Broken since b8484ef24e8e1ec90a2967372808ab2bea538c7c --- 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 */