Diff between 3b4dc84fc0b46c63c2822831f6f232dca99016a6 and 286b99fb6beef37ad4bdefa64a229352d5fabc43
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +3 | -1 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index 2295793..7b0eb25 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1861,7 +1861,9 @@ static DBusMessage *connect_profiles(struct btd_device *dev, uint8_t bdaddr_type
dev->pending = create_pending_list(dev, uuid);
if (!dev->pending) {
if (dev->svc_refreshed) {
- if (find_service_with_state(dev->services,
+ if (dbus_message_is_method_call(msg, DEVICE_INTERFACE,
+ "Connect") &&
+ find_service_with_state(dev->services,
BTD_SERVICE_STATE_CONNECTED))
return dbus_message_new_method_return(msg);
else