From 576a49ef3d940d0391ba18b21e5f279ebd75e12b Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 25 Dec 2023 15:22:00 +0100 Subject: [PATCH] core: fix incorrect usage of ms in poll thread fuck me --- src/core/PortalManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/PortalManager.cpp b/src/core/PortalManager.cpp index 6a4c9d4..e27d041 100644 --- a/src/core/PortalManager.cpp +++ b/src/core/PortalManager.cpp @@ -330,7 +330,7 @@ void CPortalManager::startEventLoop() { std::thread pollThr([this, &pollfds]() { while (1) { - int ret = poll(pollfds, 3, 5 /* 5 seconds, reasonable. It's because we might need to terminate */); + int ret = poll(pollfds, 3, 5000 /* 5 seconds, reasonable. It's because we might need to terminate */); if (ret < 0) { Debug::log(CRIT, "[core] Polling fds failed with {}", strerror(errno)); g_pPortalManager->terminate();