[folks] Exit EDS test early in case multiple signal emissions are in-flight.
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Exit EDS test early in case multiple signal emissions are in-flight.
- Date: Fri, 23 Sep 2011 20:10:25 +0000 (UTC)
commit 5b0711a6f6b3a4c3ba003dddc0c6a2a27542ad98
Author: Travis Reitter <travis reitter collabora co uk>
Date: Thu Sep 22 10:30:15 2011 -0700
Exit EDS test early in case multiple signal emissions are in-flight.
This fixes a race between the mainloop being nullified and a dependent
signal handler calling quit() again (no idea how the signals were
getting issued and handled after the initial quit() though).
tests/eds/link-personas-diff-stores.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/eds/link-personas-diff-stores.vala b/tests/eds/link-personas-diff-stores.vala
index d319f3a..e20036a 100644
--- a/tests/eds/link-personas-diff-stores.vala
+++ b/tests/eds/link-personas-diff-stores.vala
@@ -209,6 +209,10 @@ public class LinkPersonasDiffStoresTests : Folks.TestCase
*/
private async void _check_personas (Individual i)
{
+ /* Exit early if this is a lingering callback */
+ if (this._linked_individual_found == true)
+ return;
+
Persona first_persona = null;
foreach (var p in i.personas)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]