This reverts commit 44d3f67277f83983e1e9697eda7b9aeb40ca231d. --- src/device.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/device.c b/src/device.c index 5e74633c6..de5f94c7d 100644 --- a/src/device.c +++ b/src/device.c @@ -3273,11 +3273,7 @@ uint8_t btd_device_get_bdaddr_type(struct btd_device *dev) bool btd_device_is_connected(struct btd_device *dev) { - if (dev->bredr_state.connected || dev->le_state.connected) - return true; - - return find_service_with_state(dev->services, - BTD_SERVICE_STATE_CONNECTED); + return dev->bredr_state.connected || dev->le_state.connected; } static void clear_temporary_timer(struct btd_device *dev) -- 2.44.0