Diff between 0b02371e2b15295d45bf2c8bf7faf39ce48d6953 and 48b7f7e5fe53b434f388a8b85cc0996853b3567c

Changed Files

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

Full Patch

diff --git a/src/device.c b/src/device.c
index 9062620..097b1fb 100644
--- a/src/device.c
+++ b/src/device.c
@@ -6428,7 +6428,8 @@ void device_bonding_complete(struct btd_device *device, uint8_t bdaddr_type,
 		/* Put the device back to the temporary state so that it will be
 		 * treated as a newly discovered device.
 		 */
-		if (!device_is_paired(device, bdaddr_type) &&
+		if (!btd_device_bearer_is_connected(device) &&
+				!device_is_paired(device, bdaddr_type) &&
 				!btd_device_is_trusted(device))
 			btd_device_set_temporary(device, true);