Fix /shutdown or ^C no longer causing server exit
authorsfan5 <sfan5@live.de>
Sun, 19 Mar 2017 17:17:59 +0000 (18:17 +0100)
committersfan5 <sfan5@live.de>
Sun, 19 Mar 2017 17:21:18 +0000 (18:21 +0100)
Broken since b8484ef24e8e1ec90a2967372808ab2bea538c7c

src/server.cpp

index 8e93134643f5a830161a220335ab2a8e0b45ab19..0daa610541dbed1253d253b00f43a5c228f7ffa6 100644 (file)
@@ -3569,6 +3569,9 @@ void dedicated_server_loop(Server &server, bool &kill)
                }
                server.step(steplen);
 
+               if (server.getShutdownRequested() || kill)
+                       break;
+
                /*
                        Profiler
                */