don't free event base before calling loopbreak()

Change-Id: I7f4283804b1c34a110e5f4ddad14bd1dd4122cc4
changes/85/23185/1
Richard Fuchs 7 years ago
parent 89c0aa167d
commit a44b34a7a9

@ -826,8 +826,10 @@ int main(int argc, char **argv) {
threads_join_all(0);
}
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);

@ -629,9 +629,6 @@ void redis_notify_loop(void *d) {
// free async context
redisAsyncDisconnect(rtpe_redis_notify_async_context);
// free event base
redis_notify_event_base_action(EVENT_BASE_FREE);
}
struct redis *redis_new(const endpoint_t *ep, int db, const char *auth,

Loading…
Cancel
Save