mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 06:34:19 +00:00
wait for threads to end on shutdown
This commit is contained in:
1 parent
085a0fa9e6
commit
02a1aa4bc4
1 file changed
+6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user