From 9f37ab25f5dca285ff572d12eba0b7ebf282672a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= Date: Wed, 16 Oct 2024 12:31:14 +0200 Subject: [PATCH] bluez5: backend-native: Destroy only active calls on +CIEV:(call,0) --- spa/plugins/bluez5/backend-native.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spa/plugins/bluez5/backend-native.c b/spa/plugins/bluez5/backend-native.c index 56b39bd1b..ccbcb2544 100644 --- a/spa/plugins/bluez5/backend-native.c +++ b/spa/plugins/bluez5/backend-native.c @@ -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);