mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 05:04:18 +08:00
Delete data channels when their device is removed.
This commit is contained in:
parent
f0e40f4c1d
commit
79a2209f6b
@ -1193,8 +1193,8 @@ static void check_devices_mcl()
|
||||
|
||||
if (!dev->sdp_present)
|
||||
to_delete = g_slist_append(to_delete, dev);
|
||||
|
||||
remove_channels(dev);
|
||||
else
|
||||
remove_channels(dev);
|
||||
}
|
||||
|
||||
for (l = to_delete; l; l = l->next) {
|
||||
@ -1961,6 +1961,9 @@ static void health_device_destroy(void *data)
|
||||
|
||||
DBG("Unregistered interface %s on path %s", HEALTH_DEVICE,
|
||||
device_get_path(device->dev));
|
||||
|
||||
remove_channels(device);
|
||||
|
||||
devices = g_slist_remove(devices, device);
|
||||
free_health_device(device);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user