mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-02 07:20:16 +00:00
hfp: remove timer on finalize context
This commit is contained in:
parent
13ee9fd7ed
commit
78a72d5e81
@ -510,6 +510,7 @@ static hfp_connection_t * create_hfp_connection_context(void){
|
||||
}
|
||||
|
||||
void hfp_finalize_connection_context(hfp_connection_t * hfp_connection){
|
||||
btstack_run_loop_remove_timer(&hfp_connection->hfp_timeout);
|
||||
btstack_linked_list_remove(&hfp_connections, (btstack_linked_item_t*) hfp_connection);
|
||||
btstack_memory_hfp_connection_free(hfp_connection);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user