freetdm: clear blocking flag when failing to wait for state change
This commit is contained in:
parent
7c3fd20104
commit
f574db0958
|
@ -338,6 +338,7 @@ end:
|
||||||
ftdm_mutex_lock(ftdmchan->mutex);
|
ftdm_mutex_lock(ftdmchan->mutex);
|
||||||
|
|
||||||
if (status != FTDM_SUCCESS) {
|
if (status != FTDM_SUCCESS) {
|
||||||
|
ftdm_clear_flag(ftdmchan, FTDM_CHANNEL_BLOCKING);
|
||||||
ftdm_log_chan_ex(ftdmchan, file, func, line,
|
ftdm_log_chan_ex(ftdmchan, file, func, line,
|
||||||
FTDM_LOG_LEVEL_WARNING, "state change from %s to %s was most likely not completed after aprox %dms\n",
|
FTDM_LOG_LEVEL_WARNING, "state change from %s to %s was most likely not completed after aprox %dms\n",
|
||||||
ftdm_channel_state2str(ftdmchan->last_state), ftdm_channel_state2str(state), DEFAULT_WAIT_TIME);
|
ftdm_channel_state2str(ftdmchan->last_state), ftdm_channel_state2str(state), DEFAULT_WAIT_TIME);
|
||||||
|
|
Loading…
Reference in New Issue