Commit 18c7701f authored by Sam Thursfield's avatar Sam Thursfield

Merge branch 'fix-lp-1822629' into 'master'

tracker-miner: Fix cancellation of g_file_enumerator_next_files_async

Closes #86

See merge request !86
parents c1a57a03 465b8031
Pipeline #72407 passed with stage
in 5 minutes and 4 seconds
......@@ -903,7 +903,7 @@ enumerate_next_cb (GObject *object,
{
DataProviderData *dpd;
GList *info;
GError *error = NULL;
g_autoptr(GError) error = NULL;
info = g_file_enumerator_next_files_finish (G_FILE_ENUMERATOR (object), result, &error);
dpd = user_data;
......@@ -922,9 +922,9 @@ enumerate_next_cb (GObject *object,
g_warning ("Could not enumerate next item in container / directory '%s', %s",
uri, error ? error->message : "no error given");
g_free (uri);
} else {
return;
}
g_clear_error (&error);
} else {
/* Done enumerating, start processing what we got ... */
data_provider_data_add (dpd);
......
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