Skip to content
Commit a8578ea2 authored by Arthur Crepin-Leblond's avatar Arthur Crepin-Leblond Committed by Anas Nashif
Browse files

Bluetooth: gatt: Fix DB corruption when adding/removing service



Fix an issue in the gatt_register routine where removing a service and
adding it again would cause the database to have non-ascending
orderdered handles numbers and lead to an incomplete service discovery.

Fix: Go through the database and look for a place where to insert
the new service.

Signed-off-by: default avatarArthur Crepin-Leblond <arthur.crepin@proglove.de>
Signed-off-by: default avatarJoakim Andersson <joakim.andersson@nordicsemi.no>
parent b23f856c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment