diff --git a/src/Components/Modules/Console.cpp b/src/Components/Modules/Console.cpp index 6ebb3ae1..c948715c 100644 --- a/src/Components/Modules/Console.cpp +++ b/src/Components/Modules/Console.cpp @@ -402,15 +402,7 @@ namespace Components // Force process termination // if the main thread is not responding OutputDebugStringA("Process termination forced, as the main thread is not responding!"); - - // We can not force the termination in this thread - // The destructor would be called in this thread - // and would try to join this thread, which is impossible - std::thread([] () - { - std::this_thread::sleep_for(200ms); - ExitProcess(static_cast(-1)); - }).detach(); + ExitProcess(static_cast(-1)); } else {