Diff between 888a1c17742167e45675c62c13cc8e10ac2f61e0 and 0b552223236990788479e89d5f3b0bfb2797acc1

Changed Files

File Additions Deletions Status
src/adapter.c +8 -0 modified

Full Patch

diff --git a/src/adapter.c b/src/adapter.c
index 8114f65..9ddd2fc 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -4161,6 +4161,14 @@ static void update_found_devices(struct btd_adapter *adapter,
 
 connect_le:
 	/*
+	 * If we're in the process of stopping passive scanning and
+	 * connecting another (or maybe even the same) LE device just
+	 * ignore this one.
+	 */
+	if (adapter->connect_le)
+		return;
+
+	/*
 	 * If this is an LE device that's not connected and part of the
 	 * connect_list stop passive scanning so that a connection
 	 * attempt to it can be made