From 2dc16d2e07c97771d38efb92868ac012d7e04c39 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Tue, 29 Dec 2020 18:47:39 +0000 Subject: [PATCH] Also exit on ECONNRESET --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 5f352e3..6a7ef3e 100644 --- a/src/main.c +++ b/src/main.c @@ -385,7 +385,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 {