[rygel] core: Catch DBus errors
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Catch DBus errors
- Date: Sat, 8 Oct 2011 18:05:02 +0000 (UTC)
commit b640c9c4e720a8a73c0c0b0a2e852c3b84706721
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]