pulse-server: don't emit _removed without havine emitted _added

Don't emit _removed for objects that are still being created because
we did not emit an _added signal for them yet.
This commit is contained in:
Wim Taymans 2021-11-04 12:50:18 +01:00
parent abacea5ca0
commit efd8ac25e3

View file

@ -641,7 +641,8 @@ static void registry_event_global_remove(void *object, uint32_t id)
o->this.removing = true;
manager_emit_removed(m, &o->this);
if (!o->this.creating)
manager_emit_removed(m, &o->this);
object_destroy(o);
}