提交 02a1aa4b authored 作者: Anthony Minessale's avatar Anthony Minessale

wait for threads to end on shutdown

上级 085a0fa9
......@@ -1688,6 +1688,12 @@ static void *SWITCH_THREAD_FUNC switch_core_session_thread_pool_manager(switch_t
check_queue();
}
while(session_manager.running) {
switch_queue_trypush(session_manager.thread_queue, NULL);
switch_yield(20000);
}
return NULL;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论