[tracker/wip/carlosg/joining-services: 1/6] libtracker-sparql-backend: Fix tracker_sparql_connection_new_async()



commit 5d34815041fb59b1b414e47c37068ce78ffe0912
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed May 13 01:03:59 2020 +0200

    libtracker-sparql-backend: Fix tracker_sparql_connection_new_async()
    
    This would be left stuck without finishing the task.

 src/libtracker-sparql-backend/tracker-backend.vala | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/libtracker-sparql-backend/tracker-backend.vala 
b/src/libtracker-sparql-backend/tracker-backend.vala
index 97de8a394..fc3682872 100644
--- a/src/libtracker-sparql-backend/tracker-backend.vala
+++ b/src/libtracker-sparql-backend/tracker-backend.vala
@@ -46,7 +46,6 @@ public static Tracker.Sparql.Connection tracker_sparql_connection_new (Tracker.S
 
 public static async Tracker.Sparql.Connection tracker_sparql_connection_new_async 
(Tracker.Sparql.ConnectionFlags flags, File store, File ontology, Cancellable? cancellable = null) throws 
GLib.Error, Tracker.Sparql.Error, IOError {
        var conn = new Tracker.Direct.Connection (flags, store, ontology);
-       conn.init_async.begin (Priority.DEFAULT, cancellable);
-       yield;
+       yield conn.init_async (Priority.DEFAULT, cancellable);
        return conn;
 }


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