mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05: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
1 changed files with 2 additions and 1 deletions
|
|
@ -641,7 +641,8 @@ static void registry_event_global_remove(void *object, uint32_t id)
|
||||||
|
|
||||||
o->this.removing = true;
|
o->this.removing = true;
|
||||||
|
|
||||||
manager_emit_removed(m, &o->this);
|
if (!o->this.creating)
|
||||||
|
manager_emit_removed(m, &o->this);
|
||||||
|
|
||||||
object_destroy(o);
|
object_destroy(o);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue