[rygel/rygel-0-12] core: Catch DBus errors



commit 76bea6b27e833762caa93e86be49f6600f605eab
Author: Jens Georg <mail jensge org>
Date:   Sat Oct 8 20:01:29 2011 +0200

    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) { }
 
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]