From 3c66567b165af66fad85a8924a395209eea2d0db Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 24 Aug 2021 15:48:38 -0700 Subject: [PATCH] device: Remove GATT Attribute when device is removed This makes the GATT Attribute cache to be removed when device is removed just like SDP ServiceRecords. Fixes: https://github.com/bluez/bluez/issues/191 --- src/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/device.c b/src/device.c index 807106812..998485be7 100644 --- a/src/device.c +++ b/src/device.c @@ -4511,6 +4511,7 @@ static void device_remove_stored(struct btd_device *device) key_file = g_key_file_new(); g_key_file_load_from_file(key_file, filename, 0, NULL); g_key_file_remove_group(key_file, "ServiceRecords", NULL); + g_key_file_remove_group(key_file, "Attributes", NULL); data = g_key_file_to_data(key_file, &length, NULL); if (length > 0) { -- 2.47.3