From 2bbf8c66212debf43db68b0166363588bfc4ad76 Mon Sep 17 00:00:00 2001 From: Jason Hughes Date: Thu, 14 Nov 2024 18:08:03 -0500 Subject: [PATCH] fix inconsistent protocol thread state on error, issue #40 --- src/datum_protocol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/datum_protocol.c b/src/datum_protocol.c index 1d636f5..e58c7a8 100644 --- a/src/datum_protocol.c +++ b/src/datum_protocol.c @@ -1498,6 +1498,7 @@ void *datum_protocol_client(void *args) { if ((ret = getaddrinfo(datum_config.datum_pool_host, port_str, &hints, &res)) != 0) { DLOG_ERROR("getaddrinfo: %s\n", gai_strerror(ret)); + datum_protocol_client_active = 0; return NULL; }