Commit 134746af authored by Ilia Ryabokon's avatar Ilia Ryabokon

Sankore-1021 safe thread termination

parent 4c1e1ee9
...@@ -160,7 +160,7 @@ void UBFeaturesComputingThread::run() ...@@ -160,7 +160,7 @@ void UBFeaturesComputingThread::run()
emit scanFinished(); emit scanFinished();
mMutex.lock(); mMutex.lock();
if (!restart) { if (!abort) {
mWaitCondition.wait(&mMutex); mWaitCondition.wait(&mMutex);
} }
restart = false; restart = false;
......
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