[folks] tracker: Don’t warn if prepare() fail s due to the bus disappearing
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] tracker: Don’t warn if prepare() fail s due to the bus disappearing
- Date: Sun, 16 Feb 2014 23:55:28 +0000 (UTC)
commit bdd4d235def0c2662e125aaa4ed4b77d2dad14e6
Author: Philip Withnall <philip tecnocode co uk>
Date: Tue Nov 19 00:35:49 2013 +0000
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.
backends/tracker/lib/trf-persona-store.vala | 9 +++++++--
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 5d5613e..dc570d0 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]