From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> device_remove is called to cleanup/free the device objects so the services should be disconnected before hand. --- src/device.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/device.c b/src/device.c index dbaf548..88a7b86 100644 --- a/src/device.c +++ b/src/device.c @@ -2381,8 +2381,6 @@ void device_remove(struct btd_device *device, gboolean remove_stored) if (device->browse) browse_request_cancel(device->browse); - g_slist_foreach(device->services, dev_disconn_service, NULL); - while (device->services != NULL) { struct btd_service *service = device->services->data; -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html