提交 8850c1d5 authored 作者: Anthony Minessale's avatar Anthony Minessale

moot leak in logger since it only happens on shutdown 1/10 times but hey, lets fix it

上级 7978bd89
...@@ -296,6 +296,7 @@ static void *SWITCH_THREAD_FUNC log_thread(switch_thread_t *t, void *obj) ...@@ -296,6 +296,7 @@ static void *SWITCH_THREAD_FUNC log_thread(switch_thread_t *t, void *obj)
} }
if (!pop) { if (!pop) {
THREAD_RUNNING = -1;
break; break;
} }
...@@ -558,7 +559,7 @@ SWITCH_DECLARE(switch_status_t) switch_log_shutdown(void) ...@@ -558,7 +559,7 @@ SWITCH_DECLARE(switch_status_t) switch_log_shutdown(void)
{ {
switch_status_t st; switch_status_t st;
THREAD_RUNNING = -1;
switch_queue_push(LOG_QUEUE, NULL); switch_queue_push(LOG_QUEUE, NULL);
while (THREAD_RUNNING) { while (THREAD_RUNNING) {
switch_cond_next(); switch_cond_next();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论