From be401b5e4ae6d8bb87174e84078f6891d48d4d0d Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 4 Apr 2020 22:38:23 +0000 Subject: [PATCH] Report error when binding to address fails This fixes #21 --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index cfa7952..c62b79c 100644 --- a/src/main.c +++ b/src/main.c @@ -454,8 +454,10 @@ static void on_fb_req(struct nvnc_client* client, bool is_incremental, int init_nvnc(struct wayvnc* self, const char* addr, uint16_t port) { self->nvnc = nvnc_open(addr, port); - if (!self->nvnc) + if (!self->nvnc) { + log_error("Failed to bind to address\n"); return -1; + } nvnc_set_userdata(self->nvnc, self);