mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 05:51:23 +08:00
T66 Check whether it is safe to abandon the worker.
This commit is contained in:
@@ -75,7 +75,7 @@ namespace BlackCore
|
|||||||
m_enabled = false;
|
m_enabled = false;
|
||||||
if (!CThreadUtils::isCurrentThreadObjectThread(this))
|
if (!CThreadUtils::isCurrentThreadObjectThread(this))
|
||||||
{
|
{
|
||||||
this->abandonAndWait();
|
doIfNotFinished([this] { this->abandonAndWait(); });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user