don't free redis event base while being used

closes #804

Change-Id: Ic4bce6cf50441011d8eea0ba2da8861a783a33a9
changes/43/32043/2
Richard Fuchs 6 years ago
parent 24d67d0662
commit 1653f3201b

@ -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;

Loading…
Cancel
Save