mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
bluez5: backend-native: Destroy only active calls on +CIEV:(call,0)
This commit is contained in:
parent
056c2dd535
commit
9f37ab25f5
1 changed files with 1 additions and 2 deletions
|
|
@ -1929,8 +1929,7 @@ static bool rfcomm_hfp_hf(struct rfcomm *rfcomm, char* token)
|
|||
if (value == 0) {
|
||||
struct spa_bt_telephony_call *call, *tcall;
|
||||
spa_list_for_each_safe(call, tcall, &rfcomm->telephony_ag->call_list, link) {
|
||||
if (call->state == CALL_STATE_DIALING || call->state == CALL_STATE_ALERTING ||
|
||||
call->state == CALL_STATE_INCOMING ||call->state == CALL_STATE_ACTIVE) {
|
||||
if (call->state == CALL_STATE_ACTIVE) {
|
||||
call->state = CALL_STATE_DISCONNECTED;
|
||||
telephony_call_notify_updated_props(call);
|
||||
telephony_call_destroy(call);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue