summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2013-11-19 00:35:49 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2014-02-16 23:52:32 +0000
commitbdd4d235def0c2662e125aaa4ed4b77d2dad14e6 (patch)
treef744105ced46d0c3937fafaf0946dd6315ac4eed
parentecfe72ef925a9e561d9a6c94ba7bac12eede550e (diff)
tracker: Don’t warn if prepare() fails due to the bus disappearing
This is not an uncommon occurrence during the unit tests. It doesn’t deserve a warning.
-rw-r--r--backends/tracker/lib/trf-persona-store.vala9
1 files changed, 7 insertions, 2 deletions
diff --git a/backends/tracker/lib/trf-persona-store.vala b/backends/tracker/lib/trf-persona-store.vala
index 5d5613ec..dc570d0a 100644
--- a/backends/tracker/lib/trf-persona-store.vala
+++ b/backends/tracker/lib/trf-persona-store.vala
@@ -1134,8 +1134,13 @@ public class Trf.PersonaStore : Folks.PersonaStore
}
catch (GLib.IOError e1)
{
- warning ("Could not connect to D-Bus service: %s",
- e1.message);
+ /* Ignore errors from the bus disappearing. */
+ if (!(e1 is IOError.CLOSED))
+ {
+ warning ("Could not connect to D-Bus service: %s",
+ e1.message);
+ }
+
this.removed ();
throw new PersonaStoreError.INVALID_ARGUMENT (e1.message);
}