From 6ce943f4d979423290662f691e3d8a3cded79a42 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 13 Dec 2019 07:00:22 +0000 Subject: [PATCH] Need to check in the error callback also. --- client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client.c b/client.c index 11b13dc2..4bebb977 100644 --- a/client.c +++ b/client.c @@ -459,6 +459,9 @@ client_write_error_callback(__unused struct bufferevent *bev, close(cf->fd); cf->fd = -1; + + if (client_exitflag) + client_exit(); } /* File write callback. */