Diff between 0a783f1163ff228047039a5b47934d19f7276700 and 914c394e50cfa564eee782ce450004609c6a955f

Changed Files

File Additions Deletions Status
android/gatt.c +6 -0 modified

Full Patch

diff --git a/android/gatt.c b/android/gatt.c
index ee9eb90..813588b 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -481,6 +481,12 @@ reply:
 	/* If connection did not succeed, destroy device */
 	if (status)
 		destroy_device(dev);
+
+	/* Check if we should restart scan */
+	if (scanning)
+		bt_le_discovery_start(le_device_found_handler);
+
+	/*FIXME: What to do if discovery won't start here. */
 }
 
 static int connect_le(struct gatt_device *dev)