Add various fixes for Web
This commit is contained in:
@@ -357,6 +357,8 @@ StringView StringUtils::GetPathWithoutExtension(const StringView& path)
|
||||
void StringUtils::PathRemoveRelativeParts(String& path)
|
||||
{
|
||||
FileSystem::NormalizePath(path);
|
||||
if (path.Length() == 1 && path[0] == TEXT('/'))
|
||||
return;
|
||||
|
||||
Array<String> components;
|
||||
path.Split(TEXT('/'), components);
|
||||
|
||||
@@ -45,6 +45,11 @@ void ThreadBase::Kill(bool waitForJoin)
|
||||
if (!_isRunning)
|
||||
{
|
||||
ClearHandleInternal();
|
||||
if (_callAfterWork)
|
||||
{
|
||||
_callAfterWork = false;
|
||||
_runnable->AfterWork(true);
|
||||
}
|
||||
return;
|
||||
}
|
||||
ASSERT(GetID());
|
||||
|
||||
Reference in New Issue
Block a user