From: Jens Georg Date: Sat, 8 Oct 2011 18:01:29 +0000 (+0200) Subject: core: Catch DBus errors X-Git-Tag: RYGEL_0_13_0~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b640c9c4e720a8a73c0c0b0a2e852c3b84706721;p=profile%2Fivi%2Frygel.git core: Catch DBus errors --- 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) { } }