Commit ed663540 authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-miner: Remove tasks for not found files from the pool

Else, they're left stuck there forever, eventually filling in the
task pool if ::process-file is called to many times on a just
removed file (eg. temporary ones)
parent e1ed1a08
......@@ -1927,6 +1927,10 @@ item_add_or_update_cb (TrackerMinerFS *fs,
g_free (uri);
return;
} else if (error->code == G_IO_ERROR_NOT_FOUND) {
tracker_task_pool_remove (fs->priv->task_pool, extraction_task);
fs->priv->extraction_tasks = g_list_remove (fs->priv->extraction_tasks,
extraction_task);
/* File was not found, remove it
* if it was in the store
*/
......
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