From: Wootak Jung Date: Tue, 12 Dec 2023 02:17:48 +0000 (+0900) Subject: gdbus/object: Fix issue where the 'Powered' property changed was not emitted X-Git-Tag: accepted/tizen/7.0/unified/20231212.115258^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8acd3e67c680afac0fe46bb89b8b65a8bef68aa;p=platform%2Fupstream%2Fbluez.git gdbus/object: Fix issue where the 'Powered' property changed was not emitted property changed should be emitted after interface is published. Change-Id: Ibaf34eec7e804a0943e8647285c8da28ef65571a Signed-off-by: Wootak Jung --- diff --git a/gdbus/object.c b/gdbus/object.c index 08ba6e15..2ab6ff0a 100755 --- a/gdbus/object.c +++ b/gdbus/object.c @@ -647,7 +647,14 @@ static void add_pending(struct generic_data *data) { guint old_id = data->process_id; +#ifdef TIZEN_FEATURE_BLUEZ_MODIFY + /* As g_idle_add callback was additionally registered as a tizen modification, + priority adjustment between callbacks became necessary. + adapter_start_idle_cb() in read_info_complete() must be called after process_changes() */ + data->process_id = g_idle_add_full(G_PRIORITY_HIGH_IDLE, process_changes, data, NULL); +#else data->process_id = g_idle_add(process_changes, data); +#endif if (old_id > 0) { /*