diff options
-rw-r--r-- | src/wayland-client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wayland-client.c b/src/wayland-client.c index d043459..e92317a 100644 --- a/src/wayland-client.c +++ b/src/wayland-client.c @@ -1210,8 +1210,10 @@ wl_display_dispatch_queue(struct wl_display *display, pfd[0].fd = display->fd; pfd[0].events = POLLIN; - if (poll(pfd, 1, -1) == -1) + if (poll(pfd, 1, -1) == -1) { + wl_display_cancel_read(display); return -1; + } pthread_mutex_lock(&display->mutex); |