mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +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;
|
||||
if (!CThreadUtils::isCurrentThreadObjectThread(this))
|
||||
{
|
||||
this->abandonAndWait();
|
||||
doIfNotFinished([this] { this->abandonAndWait(); });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user