[rygel] core: Don't register object on service registration failure
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: Don't register object on service registration failure
- Date: Tue, 29 Sep 2009 22:03:53 +0000 (UTC)
commit 126225406315b87f2d2b1c03736250d7bb5344f5
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Sep 30 00:55:54 2009 +0300
core: Don't register object on service registration failure
Don't register D-Bus object on service registration failure.
src/rygel/rygel-dbus-service.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-dbus-service.vala b/src/rygel/rygel-dbus-service.vala
index 9e2cba0..6a2c6bf 100644
--- a/src/rygel/rygel-dbus-service.vala
+++ b/src/rygel/rygel-dbus-service.vala
@@ -44,9 +44,9 @@ public class Rygel.DBusService : Object {
if (request_name_result != DBus.RequestNameReply.PRIMARY_OWNER) {
warning ("Failed to start D-Bus service, name '%s' already taken",
RYGEL_SERVICE);
+ } else {
+ conn.register_object (RYGEL_PATH, this);
}
-
- conn.register_object (RYGEL_PATH, this);
}
public void Shutdown () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]