Diff between 8e5a2f9d98307d615fc815daace91479803285c7 and 6dcea66fc2fed74d945c415a5aa1747ff247f4da

Changed Files

File Additions Deletions Status
mesh/node.c +8 -0 modified

Full Patch

diff --git a/mesh/node.c b/mesh/node.c
index e23f32d..e1f0bcf 100644
--- a/mesh/node.c
+++ b/mesh/node.c
@@ -294,6 +294,10 @@ static void free_node_dbus_resources(struct mesh_node *node)
 
 		l_dbus_object_remove_interface(dbus_get_bus(), node->obj_path,
 						MESH_MANAGEMENT_INTERFACE);
+
+		l_dbus_object_remove_interface(dbus_get_bus(), node->obj_path,
+						L_DBUS_INTERFACE_PROPERTIES);
+
 		l_free(node->obj_path);
 		node->obj_path = NULL;
 	}
@@ -1156,6 +1160,10 @@ static bool register_node_object(struct mesh_node *node)
 					MESH_MANAGEMENT_INTERFACE, node))
 		return false;
 
+	if (!l_dbus_object_add_interface(dbus_get_bus(), node->obj_path,
+					L_DBUS_INTERFACE_PROPERTIES, NULL))
+		return false;
+
 	return true;
 }