[rygel] core: Also catch DBus errors on Queue call



commit a125dbbcddcd06cd95c3f5943b77f3f5fc29851c
Author: Jens Georg <mail jensge org>
Date:   Thu Sep 22 18:50:09 2011 +0200

    core: Also catch DBus errors on Queue call

 src/rygel/rygel-dbus-thumbnailer.vala |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-dbus-thumbnailer.vala b/src/rygel/rygel-dbus-thumbnailer.vala
index ec289d3..6ee2d4a 100644
--- a/src/rygel/rygel-dbus-thumbnailer.vala
+++ b/src/rygel/rygel-dbus-thumbnailer.vala
@@ -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 () {



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