aboutsummaryrefslogtreecommitdiffstats
path: root/src/device.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2010-09-20 18:58:57 -0300
committerAnderson Lizardo <anderson.lizardo@openbossa.org>2010-09-22 16:00:04 -0400
commit727ae28e17be0910c9d5cdba6c8e373a704f7dbf (patch)
tree154bd22e5a486da63d1e680806a0e5a30f0c1748 /src/device.c
parentd74b6fd61f4cf3b7d5953d3d1fc08fa2f663874c (diff)
downloadbluez-727ae28e17be0910c9d5cdba6c8e373a704f7dbf.tar.gz
bluez-727ae28e17be0910c9d5cdba6c8e373a704f7dbf.tar.xz
bluez-727ae28e17be0910c9d5cdba6c8e373a704f7dbf.zip
Delete all stored data related to GATT/ATT when the device is removed
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index 9055eca1..f6ba4457 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1100,6 +1100,7 @@ static void device_remove_stored(struct btd_device *device)
delete_entry(&src, "profiles", addr);
delete_entry(&src, "trusts", addr);
delete_all_records(&src, &device->bdaddr);
+ delete_device_service(&src, &device->bdaddr);
if (device->blocked)
device_unblock(conn, device, TRUE);