Commit 191efd3f authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Martyn Russell

libtracker-miner: Avoid critical warning

The extraction timer could be unset if the miner doesn't
get to process any file between start/stop.
parent 1c1e3083
......@@ -916,7 +916,9 @@ process_stop (TrackerMinerFS *fs)
fs->priv->total_files_found,
fs->priv->total_files_ignored);
g_timer_reset (fs->priv->extraction_timer);
if (fs->priv->extraction_timer) {
g_timer_reset (fs->priv->extraction_timer);
}
if (fs->priv->timer) {
g_timer_destroy (fs->priv->timer);
......
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