Skip to content

Commit

Permalink
core: fix pollfds hup check loop
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Oct 14, 2023
1 parent 60af24a commit d8daa2a
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 @@ -323,7 +323,7 @@ void CPortalManager::startEventLoop() {
}

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);
g_pPortalManager->terminate();
}
Expand Down

5 comments on commit d8daa2a

@kulothunganug
Copy link

@kulothunganug kulothunganug commented on d8daa2a Oct 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i get a high cpu usage becz of this (i guess..)
thanks for fixing it πŸ˜„
a minor release would be much appreciated

@vaxerski
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean because of this commit or this commit fixed it?

@kulothunganug
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this commit fixed it, the issue is #94
btw, how do i update the package
running pacman -Syu says there is nothing to do

thanks for the release too πŸ˜„

@vaxerski
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arch has to push the update to their repositories before you can pacman it.

@horror-proton
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this commit fixed it, the issue is #94 btw, how do i update the package running pacman -Syu says there is nothing to do

thanks for the release too πŸ˜„

You can install xdg-desktop-portal-hyprland-git instead if you'd like to compile the latest version from source, or using binary package built by archlinuxcn.

Please sign in to comment.