mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-27 06:35:20 +00:00
don't confuse myself
This commit is contained in:
parent
58c6c6b1e0
commit
2060cf1463
@ -350,7 +350,7 @@ void l2cap_event_handler( uint8_t *packet, uint16_t size ){
|
||||
l2cap_channel_t * channel = (l2cap_channel_t *) it->next;
|
||||
if ( channel->handle == handle ){
|
||||
// update prev item before free'ing next element - don't call l2cap_finalize_channel_close
|
||||
it->next->next = it->next;
|
||||
it->next = it->next->next;
|
||||
l2cap_emit_channel_closed(channel);
|
||||
free (channel);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user