pulse-server: send server change events when default nodes change

Send server change events to subscribers, when default nodes change due
to some nodes being added/removed/changed, also if there is no metadata
change.  Make sure the event is consistent with the result from
find_device at the time.

Previously, these were not necessarily sent, or information from
find_device immediately after the event might not reflect the change
yet.
This commit is contained in:
Pauli Virtanen 2021-01-23 01:37:59 +02:00 committed by Wim Taymans
parent 906a1f5448
commit 59452a0904
4 changed files with 51 additions and 9 deletions

View file

@ -575,6 +575,8 @@ static void registry_event_global_remove(void *object, uint32_t id)
if ((o = find_object(m, id)) == NULL)
return;
o->this.removing = true;
manager_emit_removed(m, &o->this);
object_destroy(o);