mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-19 16:01:45 +00:00
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:
parent
abacea5ca0
commit
efd8ac25e3
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue