mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: backend-native: update hfp_hf_in_progress at the end of the CLCC update
When we skip the CIEV event in order to update the call list with CLCC, we may receive multiple +CLCC events or even none, if the calls are disconnected. To avoid any mistakes, update the hfp_hf_in_progress flag after the CLCC update is entirely done.
This commit is contained in:
parent
e4b0f68e0b
commit
5ccd1c5619
1 changed files with 1 additions and 2 deletions
|
|
@ -2307,8 +2307,6 @@ static bool rfcomm_hfp_hf(struct rfcomm *rfcomm, char* token)
|
|||
} else {
|
||||
spa_log_warn(backend->log, "malformed +CLCC command received from AG");
|
||||
}
|
||||
|
||||
rfcomm->hfp_hf_in_progress = false;
|
||||
} else if (spa_strstartswith(token, "OK") || spa_strstartswith(token, "ERROR") ||
|
||||
spa_strstartswith(token, "+CME ERROR:")) {
|
||||
|
||||
|
|
@ -2411,6 +2409,7 @@ static bool rfcomm_hfp_hf(struct rfcomm *rfcomm, char* token)
|
|||
break;
|
||||
case hfp_hf_clcc_update:
|
||||
hfp_hf_remove_disconnected_calls(rfcomm);
|
||||
rfcomm->hfp_hf_in_progress = false;
|
||||
break;
|
||||
case hfp_hf_chld1_hangup:
|
||||
/* For HFP/HF/TWC/BV-03-C - see 0e92ab9307e05758b3f70b4c0648e29c1d1e50be */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue