Diff between fc6f5856d1775b39712b35049307afdd65df3d27 and ac04e5f38225d672a10ffd0a9162c3e466b6977b

Changed Files

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

Full Patch

diff --git a/src/device.c b/src/device.c
index 19ae03f..ecd385c 100644
--- a/src/device.c
+++ b/src/device.c
@@ -3933,10 +3933,10 @@ static bool device_match_profile(struct btd_device *device,
 	if (profile->remote_uuid == NULL)
 		return false;
 
-	/* Don't match if device was just discovered (not connected) and the
+	/* Don't match if device was just discovered, is temporary, and the
 	 * profile don't have probe_on_discover flag set.
 	 */
-	if (!btd_device_is_connected(device) && !profile->probe_on_discover)
+	if (device->temporary && !profile->probe_on_discover)
 		return false;
 
 	if (g_slist_find_custom(uuids, profile->remote_uuid,