Cancel read if dispatch_pending fails
This commit is contained in:
1
glfw/wl_window.c
vendored
1
glfw/wl_window.c
vendored
@@ -756,6 +756,7 @@ handleEvents(double timeout)
|
|||||||
if (errno == EAGAIN) continue;
|
if (errno == EAGAIN) continue;
|
||||||
int last_error = wl_display_get_error(display);
|
int last_error = wl_display_get_error(display);
|
||||||
if (last_error) abortOnFatalError(last_error);
|
if (last_error) abortOnFatalError(last_error);
|
||||||
|
wl_display_cancel_read(display);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user