mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-15 23:14:38 +08:00
core: Fix removing profiles from the connected profiles list
This commit is contained in:
parent
aba6eafcd6
commit
ce5cd675a3
@ -2344,6 +2344,8 @@ void device_remove_profile(gpointer a, gpointer b)
|
||||
if (!g_slist_find(device->profiles, profile))
|
||||
return;
|
||||
|
||||
device->connected_profiles = g_slist_remove(device->connected_profiles,
|
||||
profile);
|
||||
device->profiles = g_slist_remove(device->profiles, profile);
|
||||
|
||||
profile->device_remove(profile, device);
|
||||
|
Loading…
Reference in New Issue
Block a user