core: Catch DBus errors
authorJens Georg <mail@jensge.org>
Sat, 8 Oct 2011 18:01:29 +0000 (20:01 +0200)
committerJens Georg <mail@jensge.org>
Sat, 8 Oct 2011 18:01:29 +0000 (20:01 +0200)
src/rygel/rygel-dbus-thumbnailer.vala
src/rygel/rygel-thumbnailer.vala

index e5258af..5864763 100644 (file)
@@ -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);
index 3f3fb5d..af9eb34 100644 (file)
@@ -77,7 +77,7 @@ internal class Rygel.Thumbnailer : GLib.Object {
 
         try {
             this.thumbler = new DbusThumbnailer ();
-       } catch (GLib.IOError error) {}
+       } catch (GLib.Error error) { }
 
     }