FS-7305 #resolve

This commit is contained in:
Anthony Minessale committed 2015-03-06 16:44:53 -06:00
1 parent c35a23af44
commit 5a96512345
2 files changed
+19 -1

No files matched your search

@@ -1641,6 +1641,10 @@ void mod_spandsp_fax_load(switch_memory_pool_t *pool)
switch_mutex_init(&spandsp_globals.cond_mutex, SWITCH_MUTEX_NESTED, spandsp_globals.pool);
switch_thread_cond_create(&spandsp_globals.cond, spandsp_globals.pool);
if (switch_core_test_flag(SCF_MINIMAL)) {
return;
}
launch_timer_thread();
while(--sanity && !t38_state_list.thread_running) {
@@ -1652,6 +1656,10 @@ void mod_spandsp_fax_shutdown(void)
{
switch_status_t tstatus = SWITCH_STATUS_SUCCESS;
if (switch_core_test_flag(SCF_MINIMAL)) {
return;
}
t38_state_list.thread_running = 0;
wake_thread(1);
switch_thread_join(&tstatus, t38_state_list.thread);