summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-23 10:41:34 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-23 10:41:34 +0100
commit003043f8abcda9c3117a4824d21bbaf45bc5b72a (patch)
tree713269ebf06f7fb6273143047059488594aaad7b
parentDaylight sensor sensing enhancement (diff)
downloadcuberite-003043f8abcda9c3117a4824d21bbaf45bc5b72a.tar
cuberite-003043f8abcda9c3117a4824d21bbaf45bc5b72a.tar.gz
cuberite-003043f8abcda9c3117a4824d21bbaf45bc5b72a.tar.bz2
cuberite-003043f8abcda9c3117a4824d21bbaf45bc5b72a.tar.lz
cuberite-003043f8abcda9c3117a4824d21bbaf45bc5b72a.tar.xz
cuberite-003043f8abcda9c3117a4824d21bbaf45bc5b72a.tar.zst
cuberite-003043f8abcda9c3117a4824d21bbaf45bc5b72a.zip
Diffstat (limited to '')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 84339b8d6..a4ee09952 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -129,7 +129,7 @@ BOOL CtrlHandler(DWORD fdwCtrlType)
g_TERMINATE_EVENT_RAISED = true;
LOGD("Terminate event raised from the Windows CtrlHandler");
- if (fdwCtrlType == CTRL_CLOSE_EVENT)
+ if (fdwCtrlType == CTRL_CLOSE_EVENT) // Console windows closed via 'x' button, Windows will try to close immediately, therefore...
{
while (!g_SERVER_TERMINATED) { cSleep::MilliSleep(100); } // Delay as much as possible to try to get the server to shut down cleanly
}