Remove unnecessary thread

This commit is contained in:
momo5502 2016-09-03 22:44:38 +02:00
parent 01d5f02d28
commit ac6c592e51

View File

@ -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<uint32_t>(-1));
}).detach();
ExitProcess(static_cast<uint32_t>(-1));
}
else
{