]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
ammendment to last commit
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 21 Aug 2012 05:39:56 +0000 (00:39 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 21 Aug 2012 05:39:56 +0000 (00:39 -0500)
src/switch_core_session.c

index 4b334315e299dc03473727aa0db683a5ef36d608..b905d551f7a0096b32b220e90b7c75b235a66403 100644 (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);
+       }
        
 }