Fix DebugCommands::InitAsync when called every frame

This commit is contained in:
Wojtek Figat
2024-10-24 23:38:36 +02:00
parent 62ece0d92e
commit 2d371fd05f

View File

@@ -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);
}