diff --git a/src/l2cap.c b/src/l2cap.c index 717e71c16..59de39372 100644 --- a/src/l2cap.c +++ b/src/l2cap.c @@ -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 {