Commit ec4c2391 authored by Carlos Garnacho's avatar Carlos Garnacho

tracker-store: Finalize the TrackerDBusRequests on blank updates

This was likely to leave stuck resources for already disconnected clients
in the tracker-store side.
parent 96cef626
......@@ -148,7 +148,11 @@ public class Tracker.Resources : Object {
var request = DBusRequest.begin (sender, "Resources.SparqlUpdateBlank");
request.debug ("query: %s", update);
try {
return yield Tracker.Store.sparql_update_blank (update, Tracker.Store.Priority.HIGH, sender);
var variant = yield Tracker.Store.sparql_update_blank (update, Tracker.Store.Priority.HIGH, sender);
request.end ();
return variant;
} catch (DBInterfaceError.NO_SPACE ie) {
throw new Sparql.Error.NO_SPACE (ie.message);
} catch (Error e) {
......
......@@ -120,7 +120,11 @@ public class Tracker.Steroids : Object {
return null;
} else {
return yield Tracker.Store.sparql_update_blank ((string) query, priority, sender);
var variant = yield Tracker.Store.sparql_update_blank ((string) query, priority, sender);
request.end ();
return variant;
}
} catch (DBInterfaceError.NO_SPACE ie) {
throw new Sparql.Error.NO_SPACE (ie.message);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment