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:
George Kiagiadakis 2025-08-08 12:41:48 +03:00 committed by Wim Taymans
parent a39462a6c0
commit 22e80e228c

View file

@ -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);