Commit f032c7af authored by Philip Withnall's avatar Philip Withnall
Browse files

aggregator: Don’t prematurely reach quiescence

If one of the backends loads very fast, but doesn’t signal the addition of
any persona stores for a while, the IndividualAggregator will prematurely
reach quiescence. We now force quiescence to be reached at least after all
the backends have finished loading.
parent 3deab10a
......@@ -513,6 +513,11 @@ public class Folks.IndividualAggregator : Object
this._prepare_pending = true;
/* Temporarily increase the non-quiescent backend count so that
* we don't prematurely reach quiescence due to odd timing of the
* backend-available signals. */
this._backend_store.backend_available.connect (
......@@ -529,6 +534,8 @@ public class Folks.IndividualAggregator : Object
* all of them.) */
yield this._backend_store.load_backends ();
this._is_prepared = true;
this.notify_property ("is-prepared");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment