Message ID | 20240403205252.71978-2-dimitris.on.linux@gmail.com |
---|---|
State | New |
Headers | show |
Series | [BlueZ,1/1] Revert "device: Consider service state on device_is_connected" | expand |
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)