From: Johan Hedberg Date: Fri, 1 Feb 2013 15:03:22 +0000 (-0600) Subject: gdbus: Fix unpublished interface signal emission X-Git-Tag: 1.12~135 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1618c2735449f17964b51c9f43349192b4b448fc;p=platform%2Fupstream%2Fconnman.git gdbus: Fix unpublished interface signal emission If we haven't published an interface yet (i.e. it's in the data->added list), we should just ignore any property changed indications as the values for the properties will anyway be part of the InterfacesAdded signal. --- diff --git a/gdbus/object.c b/gdbus/object.c index 3327cf4..0c11246 100644 --- a/gdbus/object.c +++ b/gdbus/object.c @@ -1701,6 +1701,10 @@ void g_dbus_emit_property_changed(DBusConnection *connection, if (iface == NULL) return; + /* Don't emit property changed if interface is not yet published */ + if (g_slist_find(data->added, iface)) + return; + property = find_property(iface->properties, name); if (property == NULL) { error("Could not find property %s in %p", name,