mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-05-19 08:37:50 +01:00
core: avoid calling wl_display_read_events after poll returned due to EINTR
This commit is contained in:
parent
82808290d9
commit
5c344e753f
1 changed files with 2 additions and 1 deletions
|
@ -366,8 +366,9 @@ void CHyprlock::run() {
|
||||||
events = poll(pollfds, fdcount, 5000);
|
events = poll(pollfds, fdcount, 5000);
|
||||||
|
|
||||||
if (events < 0) {
|
if (events < 0) {
|
||||||
wl_display_cancel_read(m_sWaylandState.display);
|
|
||||||
RASSERT(errno == EINTR, "[core] Polling fds failed with {}", errno);
|
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) {
|
for (size_t i = 0; i < fdcount; ++i) {
|
||||||
|
|
Loading…
Reference in a new issue