mirror of
https://github.com/hyprwm/hyprlock.git
synced 2026-05-08 22:08:02 +02:00
core: avoid calling wl_display_read_events after poll returned due to EINTR (#757)
This commit is contained in:
parent
82808290d9
commit
867a71dd78
1 changed files with 2 additions and 1 deletions
|
|
@ -366,8 +366,9 @@ void CHyprlock::run() {
|
|||
events = poll(pollfds, fdcount, 5000);
|
||||
|
||||
if (events < 0) {
|
||||
wl_display_cancel_read(m_sWaylandState.display);
|
||||
RASSERT(errno == EINTR, "[core] Polling fds failed with {}", errno);
|
||||
wl_display_cancel_read(m_sWaylandState.display);
|
||||
continue;
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < fdcount; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue