[tracker/tracker-0.10] tracker-writeback: Don't own the DBus name before registering the object



commit 307f823e663da98b9012a7a2f9b647e3f5e8c034
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 5fc95b8..31a6036 100644
--- a/src/tracker-writeback/tracker-writeback.c
+++ b/src/tracker-writeback/tracker-writeback.c
@@ -744,14 +744,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,
@@ -766,6 +758,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]