[rygel/rygel-0-12] core: Also catch DBus errors on Queue call
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/rygel-0-12] core: Also catch DBus errors on Queue call
- Date: Tue, 27 Sep 2011 12:19:17 +0000 (UTC)
commit c3e0dd8dcfc7c5e4c0bfd61002e53b5d4437c445
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]