[nautilus] search-engine-simple: don't mark as finished before cancelling



commit 164e95fd3d8676f8ce6040cc4a4968cbc37adee6
Author: Carlos Soriano <csoriano gnome org>
Date:   Tue Jul 21 23:56:16 2015 +0200

    search-engine-simple: don't mark as finished before cancelling
    
    We were marking as search finished before the search thread actually
    finished the operation.
    Wait to mark as finished when the search thread actually reach
    its cancel.

 .../nautilus-search-engine-simple.c                |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-search-engine-simple.c 
b/libnautilus-private/nautilus-search-engine-simple.c
index 2ce3bf9..5bcea49 100644
--- a/libnautilus-private/nautilus-search-engine-simple.c
+++ b/libnautilus-private/nautilus-search-engine-simple.c
@@ -371,7 +371,6 @@ nautilus_search_engine_simple_stop (NautilusSearchProvider *provider)
        if (simple->details->active_search != NULL) {
                DEBUG ("Simple engine stop");
                g_cancellable_cancel (simple->details->active_search->cancellable);
-               simple->details->active_search = NULL;
        }
 }
 


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