From 5da7617e7fbd5dd1b3e6f443ab470dda9a26affa Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 9 Jul 2013 12:54:50 +0300 Subject: [PATCH] core/device: Don't call btd_service_disconnect on device_remove 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 dbaf548e3..88a7b86b5 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; -- 2.47.3