Diff between 11b9adb69a24744dac20fc58912e1e6ce512e991 and 7643aac9d8b079a6eac6e4a1d9fca8cb1ae683a2

Changed Files

File Additions Deletions Status
gdbus/object.c +4 -0 modified

Full Patch

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,