mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 14:35:57 +01:00
core: fix incorrect usage of ms in poll thread
fuck me
This commit is contained in:
parent
24141c05c2
commit
576a49ef3d
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue