From b640c9c4e720a8a73c0c0b0a2e852c3b84706721 Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Sat, 8 Oct 2011 20:01:29 +0200 Subject: [PATCH] core: Catch DBus errors --- src/rygel/rygel-dbus-thumbnailer.vala | 3 ++- src/rygel/rygel-thumbnailer.vala | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rygel/rygel-dbus-thumbnailer.vala b/src/rygel/rygel-dbus-thumbnailer.vala index e5258af..5864763 100644 --- a/src/rygel/rygel-dbus-thumbnailer.vala +++ b/src/rygel/rygel-dbus-thumbnailer.vala @@ -52,7 +52,8 @@ internal class Rygel.DbusThumbnailer : GLib.Object { - public DbusThumbnailer () throws GLib.IOError { + public DbusThumbnailer () throws GLib.IOError, + GLib.DBusError{ this.tumbler = GLib.Bus.get_proxy_sync (BusType.SESSION, THUMBNAILER_IFACE, THUMBNAILER_SERVICE); diff --git a/src/rygel/rygel-thumbnailer.vala b/src/rygel/rygel-thumbnailer.vala index 3f3fb5d..af9eb34 100644 --- a/src/rygel/rygel-thumbnailer.vala +++ b/src/rygel/rygel-thumbnailer.vala @@ -77,7 +77,7 @@ internal class Rygel.Thumbnailer : GLib.Object { try { this.thumbler = new DbusThumbnailer (); - } catch (GLib.IOError error) {} + } catch (GLib.Error error) { } } -- 2.7.4