[tracker-miners/wip/carlosg/shuffle-libtracker-miner: 54/116] libtracker-miner: Emit TrackerDecorator::finished on 0 items



commit 5b977019f9c6136965f415f50b6b1b01b548ac46
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jun 22 23:46:58 2018 +0200

    libtracker-miner: Emit TrackerDecorator::finished on 0 items
    
    If no items are found, ::finished is silenced away. Better to do
    this for consistency.

 src/libtracker-miner/tracker-decorator.c | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-decorator.c b/src/libtracker-miner/tracker-decorator.c
index 17d90a56f..2ec396d59 100644
--- a/src/libtracker-miner/tracker-decorator.c
+++ b/src/libtracker-miner/tracker-decorator.c
@@ -499,9 +499,6 @@ decorator_finish (TrackerDecorator *decorator)
 {
        TrackerDecoratorPrivate *priv = decorator->priv;
 
-       if (!priv->processing)
-               return;
-
        priv->processing = FALSE;
        priv->n_remaining_items = priv->n_processed_items = 0;
        g_signal_emit (decorator, signals[FINISHED], 0);


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