fix: race condition on ResourceFolderModel tests
This (hopefully) fixes the race contiditions that sometimes got triggered in tests. Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
3b13e692d2
commit
42c81395b3
9 changed files with 46 additions and 55 deletions
|
@ -499,7 +499,7 @@ void LocalModParseTask::processAsLitemod()
|
|||
|
||||
bool LocalModParseTask::abort()
|
||||
{
|
||||
m_aborted = true;
|
||||
m_aborted.store(true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -521,7 +521,7 @@ void LocalModParseTask::executeTask()
|
|||
}
|
||||
|
||||
if (m_aborted)
|
||||
emitAborted();
|
||||
emit finished();
|
||||
else
|
||||
emitSucceeded();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue