core: Restart find_object on container update
authorJens Georg <mail@jensge.org>
Tue, 11 Oct 2011 12:11:44 +0000 (14:11 +0200)
committerJens Georg <mail@jensge.org>
Wed, 12 Oct 2011 12:03:23 +0000 (14:03 +0200)
commit7da58b47cb35304c07247dba5e51875fb0e8f995
tree495b0e527dbba78593786cd471c021db64e1b3c7
parent3d8eba3d576ed20c0aba12d45ef0c251ed45f270
core: Restart find_object on container update

Before asynchronously descending in the hierarchy, we connect to the
updated signal of this container. If the container is updated, it might
be that this.children changed while we're iterating over it. If that
happens, we restart the foreach loop, but only 10 times. If we still
are interrupted, we give up.
src/rygel/rygel-simple-container.vala