From a3c6f0f6b47d8b756f2fa1e7f036c2d21ef32967 Mon Sep 17 00:00:00 2001 From: Marek Kulik Date: Sat, 27 Jan 2024 15:31:10 +0100 Subject: [PATCH] Fix server compile error introduced in 4d37b6b --- Server/core/CServerImpl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Server/core/CServerImpl.cpp b/Server/core/CServerImpl.cpp index 4a2e7dd08a..8057f94725 100644 --- a/Server/core/CServerImpl.cpp +++ b/Server/core/CServerImpl.cpp @@ -480,12 +480,14 @@ void CServerImpl::MainLoop() if (m_pModManager->IsFinished()) m_bRequestedQuit = true; +#ifdef WIN32 if (g_readyEvent != nullptr && m_pModManager->IsReadyToAcceptConnections()) { SetEvent(g_readyEvent); CloseHandle(g_readyEvent); g_readyEvent = nullptr; } +#endif HandlePulseSleep(); }