fixed bug that sometimes caused the abort button on the error checker to fail

This commit is contained in:
codeimp 2009-01-17 14:21:00 +00:00
parent d3764c6b93
commit bd5bde5e95

View file

@ -309,8 +309,18 @@ namespace CodeImp.DoomBuilder.BuilderModes
// Stop all running threads
foreach(Thread t in threads)
{
t.Interrupt();
t.Join();
while(t.IsAlive)
{
try
{
t.Interrupt();
t.Join(1);
}
catch(ThreadInterruptedException)
{
// We have to continue, we can't just leave the other threads running!
}
}
}
// Dispose all checkers