mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 08:49:01 +00:00
missed a spot
This commit is contained in:
parent
a4a8948774
commit
e659814a84
@ -4904,7 +4904,7 @@ static void switch_channel_check_device_state(switch_channel_t *channel, switch_
|
|||||||
break;
|
break;
|
||||||
case SDS_ACTIVE:
|
case SDS_ACTIVE:
|
||||||
case SDS_ACTIVE_MULTI:
|
case SDS_ACTIVE_MULTI:
|
||||||
if (drec->last_state != SDS_HELD && drec->active_start) {
|
if (drec->active_start && drec->last_state != SDS_HELD) {
|
||||||
drec->active_stop = switch_micro_time_now();
|
drec->active_stop = switch_micro_time_now();
|
||||||
} else if (!drec->active_start) {
|
} else if (!drec->active_start) {
|
||||||
drec->active_start = switch_micro_time_now();
|
drec->active_start = switch_micro_time_now();
|
||||||
@ -4914,7 +4914,7 @@ static void switch_channel_check_device_state(switch_channel_t *channel, switch_
|
|||||||
drec->hold_start = switch_micro_time_now();
|
drec->hold_start = switch_micro_time_now();
|
||||||
drec->hold_stop = 0;
|
drec->hold_stop = 0;
|
||||||
default:
|
default:
|
||||||
if (drec->last_state != SDS_HELD) {
|
if (drec->active_start && drec->last_state != SDS_HELD) {
|
||||||
drec->active_stop = switch_micro_time_now();
|
drec->active_stop = switch_micro_time_now();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user