Also exit on ECONNRESET

pull/95/head
Andri Yngvason 2020-12-29 18:47:39 +00:00
parent da52a28a75
commit 2dc16d2e07
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ void on_wayland_event(void* obj)
assert(rc == 0); assert(rc == 0);
if (wl_display_read_events(self->display) < 0) { if (wl_display_read_events(self->display) < 0) {
if (errno == EPIPE) { if (errno == EPIPE || errno == ECONNRESET) {
log_error("Compositor has gone away. Exiting...\n"); log_error("Compositor has gone away. Exiting...\n");
wayvnc_exit(self); wayvnc_exit(self);
} else { } else {