summaryrefslogtreecommitdiff
path: root/src/libtracker-bus/tracker-bus.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtracker-bus/tracker-bus.vala')
-rw-r--r--src/libtracker-bus/tracker-bus.vala8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libtracker-bus/tracker-bus.vala b/src/libtracker-bus/tracker-bus.vala
index 3b971d030..4ba3eedb4 100644
--- a/src/libtracker-bus/tracker-bus.vala
+++ b/src/libtracker-bus/tracker-bus.vala
@@ -21,13 +21,9 @@ public class Tracker.Bus.Connection : Tracker.Sparql.Connection {
DBusConnection bus;
string dbus_name;
- public Connection (string dbus_name, DBusConnection? dbus_connection) throws Sparql.Error, IOError, DBusError, GLib.Error {
+ public Connection (string dbus_name) throws Sparql.Error, IOError, DBusError, GLib.Error {
this.dbus_name = dbus_name;
-
- if (dbus_connection == null)
- bus = GLib.Bus.get_sync (Tracker.IPC.bus ());
- else
- bus = dbus_connection;
+ bus = GLib.Bus.get_sync (Tracker.IPC.bus ());
debug ("Waiting for service to become available...");