Also exit on ECONNRESET

multi-seat
Andri Yngvason 2020-12-29 18:47:39 +00:00
parent b08a44e446
commit e037ca32ec
1 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,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 {