diff --git a/Source/Engine/Debug/DebugCommands.cpp b/Source/Engine/Debug/DebugCommands.cpp index 2c9827b66..549612fd8 100644 --- a/Source/Engine/Debug/DebugCommands.cpp +++ b/Source/Engine/Debug/DebugCommands.cpp @@ -422,7 +422,7 @@ void DebugCommands::Search(StringView searchText, Array& matches, bo void DebugCommands::InitAsync() { ScopeLock lock(Locker); - if (Inited) + if (Inited || AsyncTask) return; AsyncTask = Task::StartNew(InitCommands); }