mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
hfp_ag: only request release audio connection if connection established
This commit is contained in:
parent
24cc6ccc6d
commit
6d78145c51
@ -1016,7 +1016,9 @@ static void hfp_ag_trigger_terminate_call(void){
|
||||
if (hfp_connection->call_state == HFP_CALL_IDLE) continue;
|
||||
hfp_connection->call_state = HFP_CALL_IDLE;
|
||||
hfp_connection->ag_indicators_status_update_bitmap = store_bit(hfp_connection->ag_indicators_status_update_bitmap, call_indicator_index, 1);
|
||||
hfp_connection->release_audio_connection = 1;
|
||||
if (hfp_connection->state == HFP_AUDIO_CONNECTION_ESTABLISHED){
|
||||
hfp_connection->release_audio_connection = 1;
|
||||
}
|
||||
hfp_ag_run_for_context(hfp_connection);
|
||||
}
|
||||
hfp_ag_emit_simple_event(HFP_SUBEVENT_CALL_TERMINATED);
|
||||
|
Loading…
x
Reference in New Issue
Block a user