UE4.8 Freezes when I kill a thread

#Let the Thread complete

You should be allowing the thread to complete!

See the code in my PrimeNumber multi thread example!

void FPrimeNumberWorker::EnsureCompletion()
{
	Stop();
	Thread->WaitForCompletion();
}
 
void FPrimeNumberWorker::Shutdown()
{
	if (Runnable)
	{
		Runnable->EnsureCompletion();
		delete Runnable;
		Runnable = NULL;
	}
}

:slight_smile:

Rama