Skip to content

Commit

Permalink
core: fix incorrect usage of ms in poll thread
Browse files Browse the repository at this point in the history
fuck me
  • Loading branch information
vaxerski committed Dec 25, 2023
1 parent 24141c0 commit 576a49e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/PortalManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 576a49e

Please sign in to comment.