Diff between 5a9df8a3cef638e5d6ffa96451929a1116308082 and b58a6519b88584fced1e5c91e3786c2f574768e4

Changed Files

File Additions Deletions Status
src/device.c +4 -4 modified

Full Patch

diff --git a/src/device.c b/src/device.c
index 0625848..20099e6 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1054,13 +1054,13 @@ void device_profile_connected(struct btd_device *dev,
 
 	dev->pending = g_slist_remove(dev->pending, profile);
 
-	if (!err) {
+	if (!err)
 		dev->connected_profiles =
 				g_slist_append(dev->connected_profiles,
 								profile);
-		if (connect_next(dev) == 0)
-			return;
-	}
+
+	if (connect_next(dev) == 0)
+		return;
 
 	if (!dev->connect)
 		return;