Possibly fix 'wit exited with -1' error

This commit is contained in:
Mogzol 2016-03-11 18:30:51 -08:00
parent 15ff842fdf
commit f4179e4f0a

View File

@ -769,14 +769,9 @@ namespace BrawlBuilder
if (curStatus == null) if (curStatus == null)
{ {
// This should only happen if p is killed, but just in case // Wit has probably exited, but we'll try to loop through again after a short sleep.
if (!p.HasExited) Thread.Sleep(100);
{ continue;
p.Kill();
p.WaitForExit();
}
break;
} }
Match m = r.Match(curStatus); Match m = r.Match(curStatus);