core: don't deinit tls logger in session_destroy
tls logger is initialized by main(), so only main() could deinit it. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
bb756b2238
commit
5094400ab7
|
@ -2179,8 +2179,6 @@ static void session_destroy(session_t *ps) {
|
||||||
ev_prepare_stop(ps->loop, &ps->event_check);
|
ev_prepare_stop(ps->loop, &ps->event_check);
|
||||||
ev_signal_stop(ps->loop, &ps->usr1_signal);
|
ev_signal_stop(ps->loop, &ps->usr1_signal);
|
||||||
ev_signal_stop(ps->loop, &ps->int_signal);
|
ev_signal_stop(ps->loop, &ps->int_signal);
|
||||||
|
|
||||||
log_deinit_tls();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2293,5 +2291,7 @@ int main(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
free(config_file);
|
free(config_file);
|
||||||
|
|
||||||
|
log_deinit_tls();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue