mirror of git://git.sysmocom.de/ofono
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.
This commit is contained in:
parent
e59fed9c96
commit
0b1694f4ba
|
@ -1701,6 +1701,10 @@ void g_dbus_emit_property_changed(DBusConnection *connection,
|
||||||
if (iface == NULL)
|
if (iface == NULL)
|
||||||
return;
|
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);
|
property = find_property(iface->properties, name);
|
||||||
if (property == NULL) {
|
if (property == NULL) {
|
||||||
error("Could not find property %s in %p", name,
|
error("Could not find property %s in %p", name,
|
||||||
|
|
Loading…
Reference in New Issue