Diff between 58345dec54466d5de52d0afd9ed835940d027ee8 and 8e1c00895404d057841aa045f59c5f2f257a10f3
Changed Files
| File | Additions | Deletions | Status |
| src/adapter.c | +2 | -3 | modified |
Full Patch
diff --git a/src/adapter.c b/src/adapter.c
index 05df20c..8c8b790 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -2853,11 +2853,10 @@ void adapter_update_found_devices(struct btd_adapter *adapter,
pending_count = g_slist_length(discovery->pending);
if (discovery->id == 0) {
- send_found(adapter);
+ discovery->id = g_idle_add(send_found, adapter);
} else if (pending_count > PENDING_FOUND_MAX) {
g_source_remove(discovery->id);
- discovery->id = 0;
- send_found(adapter);
+ discovery->id = g_idle_add(send_found, adapter);
}
}