T66 Check whether it is safe to abandon the worker.

This commit is contained in:
Mathew Sutcliffe
2017-05-07 04:32:00 +01:00
parent 98e67860bc
commit ff2687fbe9

View File

@@ -75,7 +75,7 @@ namespace BlackCore
m_enabled = false;
if (!CThreadUtils::isCurrentThreadObjectThread(this))
{
this->abandonAndWait();
doIfNotFinished([this] { this->abandonAndWait(); });
}
}