mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 12:50:52 +00:00
fixed bug that sometimes caused the abort button on the error checker to fail
This commit is contained in:
parent
d3764c6b93
commit
bd5bde5e95
1 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue