mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: backend-native: reset hfp_hf_in_progress state on error reply
If a AT+CHLD command fails, we may get stuck in the "in progress" state forever unless we clear the state here.
This commit is contained in:
parent
a39462a6c0
commit
22e80e228c
1 changed files with 3 additions and 0 deletions
|
|
@ -2437,6 +2437,9 @@ static bool rfcomm_hfp_hf(struct rfcomm *rfcomm, char* token)
|
|||
default:
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
/* reset state in case of an error reply */
|
||||
rfcomm->hfp_hf_in_progress = false;
|
||||
}
|
||||
|
||||
rfcomm_send_next_cmd(rfcomm);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue