From 004d94f1f62f9a4ac4e8aa7999b71ea255d2de69 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Tue, 12 Mar 2024 19:10:11 +0100 Subject: show failed export popup --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/search.cpp') diff --git a/src/search.cpp b/src/search.cpp index 6762779..9eb3ca4 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -370,7 +370,7 @@ static void *_ts_list_files_thread(void *args) // Use this thread to cleanup previous result. if (info->prev_result) { - while (!info->prev_result->search_completed && !info->prev_result->is_saving) { + while (!info->prev_result->search_completed || info->prev_result->is_saving) { ts_thread_sleep(10); } ts_destroy_result(info->prev_result); -- cgit v1.2.3-70-g09d2