[tracker/wip/carlosg/automatic-store-shutdown] libtracker-bus: Avoid pinging tracker-store on initialization



commit 56232b47ca2659ee1bc2483501cc13108cdfa840
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Nov 11 15:51:13 2018 +0100

    libtracker-bus: Avoid pinging tracker-store on initialization
    
    Avoid possibly raising tracker-store when initializating a bus
    connection. This can be done in a delayed manner (eg. when some
    other dbus message is sent in its way).

 src/libtracker-bus/tracker-bus.vala | 9 ---------
 1 file changed, 9 deletions(-)
---
diff --git a/src/libtracker-bus/tracker-bus.vala b/src/libtracker-bus/tracker-bus.vala
index 3b971d030..c387680c3 100644
--- a/src/libtracker-bus/tracker-bus.vala
+++ b/src/libtracker-bus/tracker-bus.vala
@@ -29,15 +29,6 @@ public class Tracker.Bus.Connection : Tracker.Sparql.Connection {
                else
                        bus = dbus_connection;
 
-               debug ("Waiting for service to become available...");
-
-               // do not use proxy to work around race condition in GDBus
-               // NB#259760
-               var msg = new DBusMessage.method_call (dbus_name, Tracker.DBUS_OBJECT_STATUS, 
Tracker.DBUS_INTERFACE_STATUS, "Wait");
-               bus.send_message_with_reply_sync (msg, 0, /* timeout */ int.MAX, null).to_gerror ();
-
-               debug ("Service is ready");
-
                // ensure that error domain is registered with GDBus
                new Sparql.Error.INTERNAL ("");
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]