ammendment to last commit

This commit is contained in:
Anthony Minessale 2012-08-21 00:39:56 -05:00
parent 142c051d68
commit 17faa239fe
1 changed files with 5 additions and 1 deletions

View File

@ -2202,7 +2202,11 @@ void switch_core_session_uninit(void)
{
switch_core_hash_destroy(&session_manager.session_table);
session_manager.ready = 0;
switch_queue_interrupt_all(session_manager.thread_queue);
while(session_manager.running) {
switch_queue_interrupt_all(session_manager.thread_queue);
switch_yield(100000);
}
}