dont change device state from hangup to hangup

This commit is contained in:
Anthony Minessale 2013-06-17 10:43:59 -05:00
parent 94b3081b02
commit 80669e8466
1 changed files with 1 additions and 1 deletions

View File

@ -4751,7 +4751,7 @@ static void switch_channel_check_device_state(switch_channel_t *channel, switch_
}
}
if (drec->state == SDS_DOWN && drec->last_state == SDS_DOWN) {
if ((drec->state == SDS_DOWN && drec->last_state == SDS_DOWN) || (drec->state == SDS_HANGUP && drec->last_state == SDS_HANGUP)) {
switch_mutex_unlock(drec->mutex);
switch_mutex_unlock(globals.device_mutex);
return;