mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
really fix unregister service for closed connection
This commit is contained in:
parent
f38f1c873c
commit
5d5a55f27c
@ -707,7 +707,7 @@ void l2cap_close_connection(connection_t *connection){
|
||||
|
||||
// unregister services
|
||||
l2cap_service_t *service;
|
||||
for (it = (linked_item_t *) &l2cap_services; it ; ){
|
||||
for (it = (linked_item_t *) &l2cap_services; it->next; ){
|
||||
service = (l2cap_service_t *) it->next;
|
||||
if (service->connection == connection){
|
||||
it->next = service->item.next;
|
||||
|
Loading…
x
Reference in New Issue
Block a user