core: Also catch DBus errors on Queue call
authorJens Georg <mail@jensge.org>
Thu, 22 Sep 2011 16:50:09 +0000 (18:50 +0200)
committerJens Georg <mail@jensge.org>
Thu, 22 Sep 2011 16:59:31 +0000 (18:59 +0200)
src/rygel/rygel-dbus-thumbnailer.vala

index ec289d3..6ee2d4a 100644 (file)
@@ -24,7 +24,9 @@ interface Tumbler : GLib.Object {
                                           string[] mime_types,
                                           string flavor,
                                           string sheduler,
-                                          uint handle) throws GLib.IOError;
+                                          uint handle)
+                                          throws GLib.IOError,
+                                                 GLib.DBusError;
 
         public signal void Finished (uint handle);
         public signal void Error (uint handle,
@@ -102,7 +104,9 @@ internal class Rygel.DbusThumbnailer : GLib.Object {
 
         try {
             yield this.tumbler.Queue (uris, mimes, flavor, "default", 0);
-        } catch (GLib.IOError e) {}
+        } catch (Error error) {
+            this.available = false;
+        }
     }
 
     public bool in_progress () {