wayland: Cancel display read before abortOnFatalError
Calling wl_display_cancel_read immediately ensures that other readers waiting on us will have a chance to wake up and discover the error in a timely manner.
This commit is contained in:
parent
8f9bbeabd7
commit
f6b03f106c
2
glfw/wl_window.c
vendored
2
glfw/wl_window.c
vendored
@ -782,8 +782,8 @@ handleEvents(monotonic_t timeout)
|
||||
errno = 0;
|
||||
if (wl_display_flush(display) < 0 && errno != EAGAIN)
|
||||
{
|
||||
abortOnFatalError(errno);
|
||||
wl_display_cancel_read(display);
|
||||
abortOnFatalError(errno);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user