diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-08-24 15:48:38 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-08-24 15:48:38 -0700 |
commit | 3c66567b165af66fad85a8924a395209eea2d0db (patch) | |
tree | 4b1baa8b03be6be736ae85d1a6f276bc60e4dba1 /src/device.c | |
parent | d61f9dc54c04f4fc5791398a0dbae59d671846bf (diff) | |
download | bluez-3c66567b165af66fad85a8924a395209eea2d0db.tar.gz |
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
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |