git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9002
d0543943-73ff-0310-b7d9-
9358b9ac24b2
return SWITCH_FALSE;
}
if (switch_core_asr_check_results(sth->ah, &flags) == SWITCH_STATUS_SUCCESS) {
- switch_mutex_lock(sth->mutex);
- switch_thread_cond_signal(sth->cond);
- switch_mutex_unlock(sth->mutex);
+ if (sth->mutex && sth->cond && sth->ready) {
+ switch_mutex_lock(sth->mutex);
+ switch_thread_cond_signal(sth->cond);
+ switch_mutex_unlock(sth->mutex);
+ }
}
}
}