[tracker/tracker-0.12] tracker-writeback: Don't own the DBus name before registering the object
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.12] tracker-writeback: Don't own the DBus name before registering the object
- Date: Thu, 20 Oct 2011 12:44:09 +0000 (UTC)
commit c3975d15fc7f60e0465ae5049f1fd5409b4af10f
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Oct 14 12:54:15 2011 +0200
tracker-writeback: Don't own the DBus name before registering the object
Fixes NB#286589.
src/tracker-writeback/tracker-writeback.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/tracker-writeback/tracker-writeback.c b/src/tracker-writeback/tracker-writeback.c
index 5eac0d3..bb35df9 100644
--- a/src/tracker-writeback/tracker-writeback.c
+++ b/src/tracker-writeback/tracker-writeback.c
@@ -722,14 +722,6 @@ tracker_controller_dbus_start (TrackerController *controller,
g_message (" Path:'" TRACKER_WRITEBACK_PATH "'");
g_message (" Object Type:'%s'", G_OBJECT_TYPE_NAME (controller));
- priv->bus_name_id =
- g_bus_own_name_on_connection (priv->d_connection,
- TRACKER_WRITEBACK_SERVICE,
- G_BUS_NAME_OWNER_FLAGS_NONE,
- bus_name_acquired_cb,
- bus_name_vanished_cb,
- controller, NULL);
-
priv->registration_id =
g_dbus_connection_register_object (priv->d_connection,
TRACKER_WRITEBACK_PATH,
@@ -744,6 +736,14 @@ tracker_controller_dbus_start (TrackerController *controller,
return FALSE;
}
+ priv->bus_name_id =
+ g_bus_own_name_on_connection (priv->d_connection,
+ TRACKER_WRITEBACK_SERVICE,
+ G_BUS_NAME_OWNER_FLAGS_NONE,
+ bus_name_acquired_cb,
+ bus_name_vanished_cb,
+ controller, NULL);
+
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]