core: fix incorrect usage of ms in poll thread

fuck me
This commit is contained in:
Vaxry 2023-12-25 15:22:00 +01:00
parent 24141c05c2
commit 576a49ef3d

View file

@ -330,7 +330,7 @@ void CPortalManager::startEventLoop() {
std::thread pollThr([this, &pollfds]() { std::thread pollThr([this, &pollfds]() {
while (1) { 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) { if (ret < 0) {
Debug::log(CRIT, "[core] Polling fds failed with {}", strerror(errno)); Debug::log(CRIT, "[core] Polling fds failed with {}", strerror(errno));
g_pPortalManager->terminate(); g_pPortalManager->terminate();