Added some comments in main.cpp
This commit is contained in:
parent
11fbfb458d
commit
003043f8ab
@ -129,7 +129,7 @@ BOOL CtrlHandler(DWORD fdwCtrlType)
|
|||||||
g_TERMINATE_EVENT_RAISED = true;
|
g_TERMINATE_EVENT_RAISED = true;
|
||||||
LOGD("Terminate event raised from the Windows CtrlHandler");
|
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
|
while (!g_SERVER_TERMINATED) { cSleep::MilliSleep(100); } // Delay as much as possible to try to get the server to shut down cleanly
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user