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:
Yuxuan Shui 2019-07-25 02:34:50 +01:00
parent bb756b2238
commit 5094400ab7
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 2 additions and 2 deletions

View File

@ -2179,8 +2179,6 @@ static void session_destroy(session_t *ps) {
ev_prepare_stop(ps->loop, &ps->event_check);
ev_signal_stop(ps->loop, &ps->usr1_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);
log_deinit_tls();
return 0;
}