mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Ref T541 Skip isAbandoned check if not called by worker thread.
This commit is contained in:
@@ -165,7 +165,10 @@ namespace BlackCore
|
||||
{
|
||||
// sApp->hasWebDataServices() cannot be used, as some readers are already used during init phase
|
||||
if (!this->isEnabled()) { return false; }
|
||||
if (this->isAbandoned()) { return false; }
|
||||
|
||||
// MS 2019-02-23 isAbandoned() check only makes sense when called by worker thread (T541)
|
||||
if (CThreadUtils::isCurrentThreadObjectThread(this) && this->isAbandoned()) { return false; }
|
||||
|
||||
if (!m_unitTest && (!sApp || sApp->isShuttingDown())) { return false; }
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user