mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 14:35:57 +01:00
core: fix pollfds hup check loop
This commit is contained in:
parent
60af24a70d
commit
d8daa2a84f
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ void CPortalManager::startEventLoop() {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (size_t i = 0; i < 3; ++i) {
|
for (size_t i = 0; i < 3; ++i) {
|
||||||
if (pollfds[0].revents & POLLHUP) {
|
if (pollfds[i].revents & POLLHUP) {
|
||||||
Debug::log(CRIT, "[core] Disconnected from pollfd id {}", i);
|
Debug::log(CRIT, "[core] Disconnected from pollfd id {}", i);
|
||||||
g_pPortalManager->terminate();
|
g_pPortalManager->terminate();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue