diff --git a/src/main.c b/src/main.c index cafb316..b078d0a 100644 --- a/src/main.c +++ b/src/main.c @@ -409,7 +409,7 @@ void on_wayland_event(void* obj) assert(rc == 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"); wayvnc_exit(self); } else {