From 1653f3201bf2ad80a5158d0ab548452c8684c18c Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 29 Jul 2019 13:08:43 -0400 Subject: [PATCH] don't free redis event base while being used closes #804 Change-Id: Ic4bce6cf50441011d8eea0ba2da8861a783a33a9 --- daemon/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/daemon/main.c b/daemon/main.c index 91256a70d..fd8831fc3 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -831,13 +831,14 @@ int main(int argc, char **argv) { service_notify("STOPPING=1\n"); - if (!is_addr_unspecified(&rtpe_config.redis_ep.address)) { + if (!is_addr_unspecified(&rtpe_config.redis_ep.address)) redis_notify_event_base_action(EVENT_BASE_LOOPBREAK); - redis_notify_event_base_action(EVENT_BASE_FREE); - } threads_join_all(1); + if (!is_addr_unspecified(&rtpe_config.redis_ep.address)) + redis_notify_event_base_action(EVENT_BASE_FREE); + ilog(LOG_INFO, "Version %s shutting down", RTPENGINE_VERSION); return 0;