提交 f4aaeedb authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-7306 #resolve

上级 9fe51280
...@@ -138,7 +138,7 @@ static int add_pvt(pvt_t *pvt) ...@@ -138,7 +138,7 @@ static int add_pvt(pvt_t *pvt)
{ {
int r = 0; int r = 0;
if (t38_state_list.thread_running) { if (t38_state_list.thread_running > 0) {
switch_mutex_lock(t38_state_list.mutex); switch_mutex_lock(t38_state_list.mutex);
pvt->next = t38_state_list.head; pvt->next = t38_state_list.head;
t38_state_list.head = pvt; t38_state_list.head = pvt;
...@@ -199,12 +199,13 @@ static void *SWITCH_THREAD_FUNC timer_thread_run(switch_thread_t *thread, void * ...@@ -199,12 +199,13 @@ static void *SWITCH_THREAD_FUNC timer_thread_run(switch_thread_t *thread, void *
if (switch_core_timer_init(&timer, "soft", ms, samples, NULL) != SWITCH_STATUS_SUCCESS) { if (switch_core_timer_init(&timer, "soft", ms, samples, NULL) != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "timer init failed.\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "timer init failed.\n");
t38_state_list.thread_running = -1;
goto end; goto end;
} }
switch_mutex_lock(spandsp_globals.cond_mutex); switch_mutex_lock(spandsp_globals.cond_mutex);
while(t38_state_list.thread_running) { while(t38_state_list.thread_running > 0) {
switch_mutex_lock(t38_state_list.mutex); switch_mutex_lock(t38_state_list.mutex);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论