core/device: Fix not responding to Connect
Luiz Augusto von Dentz
maintainerPATCH 1/1 core/device: Fix not responding to Connect
From: Luiz Augusto von Dentz <[email protected]>
If profile is removed while its connection is pending it shall not be removed directly from pending list since service_remove should first notify the error which will end up in device_profile_connected that will take care of cleaning up properly and respond to Connect if necessary.
--- src/device.c | 2 -- 1 file changed, 2 deletions(-)
src/device.c +0 -2
@@ -3320,7 +3320,6 @@ static void device_remove_gatt_service(struct btd_device *device, service = l->data; device->services =g_slist_delete_link (device->services, l); - device->pending =g_slist_remove (device->pending, service);service_remove (service); }
@@ -4045,7 +4044,6 @@ void device_remove_profile(gpointer a, gpointer b) service = l->data; device->services =g_slist_delete_link (device->services, l); - device->pending =g_slist_remove (device->pending, service);service_remove (service); }
Signature · 1 line
2.4.3