Skip to content
Snippets Groups Projects
Commit 44cffe47 authored by Pino Toscano's avatar Pino Toscano Committed by Philipp Erhardt
Browse files

Unlock SearchWorker on exit

When breaking the forever loop in SearchWorker::run(), unlock the mutex
of the SearchBar, otherwise it will stay as locked on shutdown.
parent e37396a3
Branches master
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@ void SearchWorker::run() {
bar->search_mutex.lock();
stop = false;
if (die) {
bar->search_mutex.unlock();
break;
}
// always clear results -> empty search == stop search
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment