freetdm: ftmod_r2 - do not act upon protocol error in DOWN state

This commit is contained in:
Moises Silva 2010-12-03 06:29:11 -05:00
parent dae177ec30
commit d6d6a9ed9e
1 changed files with 1 additions and 0 deletions

View File

@ -565,6 +565,7 @@ static void ftdm_r2_on_protocol_error(openr2_chan_t *r2chan, openr2_protocol_err
if (ftdmchan->state == FTDM_CHANNEL_STATE_DOWN) {
ftdm_log_chan_msg(ftdmchan, FTDM_LOG_ERROR, "Got protocol error when we're already down!\n");
return;
}
ftdm_log_chan_msg(ftdmchan, FTDM_LOG_ERROR, "Protocol error\n");