From 632636dba535468d8266ad44c099f1217f1e3ea5 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 12 Feb 2021 06:52:48 +0000 Subject: Do not care about the server socket closing if exiting anyway. --- client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index 74dc4602..5a454ffe 100644 --- a/client.c +++ b/client.c @@ -553,8 +553,10 @@ static void client_dispatch(struct imsg *imsg, __unused void *arg) { if (imsg == NULL) { - client_exitreason = CLIENT_EXIT_LOST_SERVER; - client_exitval = 1; + if (!client_exitflag) { + client_exitreason = CLIENT_EXIT_LOST_SERVER; + client_exitval = 1; + } proc_exit(client_proc); return; } -- cgit v1.2.3