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
1 changed files with 1 additions and 1 deletions

View File

@ -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();