From c411eed24b26cfa41e73a317dc86256703f78556 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 17 Jul 2024 15:17:56 +0200 Subject: [PATCH] goep_client: remove client struct from linked list in case of connection/sdp query failure --- src/classic/goep_client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/classic/goep_client.c b/src/classic/goep_client.c index 2ba232bef..4b50bda2e 100644 --- a/src/classic/goep_client.c +++ b/src/classic/goep_client.c @@ -139,6 +139,7 @@ static inline void goep_client_emit_can_send_now_event(goep_client_t * goep_clie static void goep_client_handle_connection_opened(goep_client_t * goep_client, uint8_t status, uint16_t mtu){ if (status) { goep_client->state = GOEP_CLIENT_INIT; + btstack_linked_list_remove(&goep_clients, (btstack_linked_item_t *) goep_client); log_info("goep_client: open failed, status %u", status); } else { goep_client->bearer_mtu = mtu;