Diff between 4a22ca8acd1523a70b5c9d07ca73052e9933f143 and 0dc65d5526c1234dd8975e310d555de2afd6ac13

Changed Files

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

Full Patch

diff --git a/src/device.c b/src/device.c
index 76c82e1..b0d0252 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1163,7 +1163,7 @@ void device_profile_connected(struct btd_device *dev,
 
 	DBG("returning response to %s", dbus_message_get_sender(dev->connect));
 
-	if (err)
+	if (err && dev->connected_profiles == NULL)
 		g_dbus_send_message(btd_get_dbus_connection(),
 				btd_error_failed(dev->connect, strerror(-err)));
 	else