mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-23 18:39:52 +00:00
goep_client: remove client struct from linked list in case of connection/sdp query failure
This commit is contained in:
parent
102b72893f
commit
c411eed24b
@ -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){
|
static void goep_client_handle_connection_opened(goep_client_t * goep_client, uint8_t status, uint16_t mtu){
|
||||||
if (status) {
|
if (status) {
|
||||||
goep_client->state = GOEP_CLIENT_INIT;
|
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);
|
log_info("goep_client: open failed, status %u", status);
|
||||||
} else {
|
} else {
|
||||||
goep_client->bearer_mtu = mtu;
|
goep_client->bearer_mtu = mtu;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user