Diff between dcd5640ece6604bb0f033890e0835e6ea653a0bf and bc49a387b62b6e71f1383a421b508722fb52e42f
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +4 | -0 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index 5cb5460..0f75c60 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1164,6 +1164,9 @@ static void device_profile_connected(struct btd_device *dev,
if (dev->pending == NULL)
return;
+ if (!dev->connected && err == -EHOSTDOWN)
+ goto done;
+
pending = dev->pending->data;
l = find_service_with_profile(dev->pending, profile);
if (l != NULL)
@@ -1179,6 +1182,7 @@ static void device_profile_connected(struct btd_device *dev,
if (connect_next(dev) == 0)
return;
+done:
if (!dev->connect)
return;