Diff between a180f3e6ae61a3f3733234fc7baf0ffa6f19189c and 2f4004d1a37ee613a99631ba330a3380cc48e0ee

Changed Files

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

Full Patch

diff --git a/src/device.c b/src/device.c
index 240af79..a1e1c6d 100644
--- a/src/device.c
+++ b/src/device.c
@@ -3672,6 +3672,10 @@ unsigned int device_wait_for_svc_complete(struct btd_device *dev,
 
 	if (dev->svc_resolved)
 		cb->idle_id = g_idle_add(svc_idle_cb, cb);
+	else if (dev->discov_timer > 0) {
+		g_source_remove(dev->discov_timer);
+		dev->discov_timer = g_idle_add(start_discovery, dev);
+	}
 
 	return cb->id;
 }