Fix DebugCommands::InitAsync when called every frame
This commit is contained in:
@@ -422,7 +422,7 @@ void DebugCommands::Search(StringView searchText, Array<StringView>& matches, bo
|
||||
void DebugCommands::InitAsync()
|
||||
{
|
||||
ScopeLock lock(Locker);
|
||||
if (Inited)
|
||||
if (Inited || AsyncTask)
|
||||
return;
|
||||
AsyncTask = Task::StartNew(InitCommands);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user