pulse-server: also remove creating objects

When an object is created, it is marked creating until all roundtrips
complete. If the object is removed in between, we don't remove it
because find_object does not return creating objects.

Make find_object also return the creating objects to fix this.
This commit is contained in:
Wim Taymans 2021-11-03 16:57:41 +01:00
parent 73bf30efa6
commit f70fdf5605

View file

@ -165,8 +165,6 @@ static struct object *find_object(struct manager *m, uint32_t id)
{
struct object *o;
spa_list_for_each(o, &m->this.object_list, this.link) {
if (o->this.creating)
continue;
if (o->this.id == id)
return o;
}