Commit a67b35d0 a67b35d0eb3f96d08476f5bd8b5764ef2246459c by hexid

Add check to dotNET application to make sure the process has exited before tryin…

…g to return the exit code. Source: http://stackoverflow.com/a/65070
1 parent 16d6e2b7
No preview for this file type
...@@ -167,6 +167,7 @@ class casperjs { ...@@ -167,6 +167,7 @@ class casperjs {
167 string line = p.StandardOutput.ReadLine(); 167 string line = p.StandardOutput.ReadLine();
168 Console.WriteLine(line); 168 Console.WriteLine(line);
169 } 169 }
170 p.WaitForExit();
170 return p.ExitCode; 171 return p.ExitCode;
171 } catch(Win32Exception e) { 172 } catch(Win32Exception e) {
172 Console.WriteLine("Fatal: " + e.Message + "; did you install " + ENGINE + "?"); 173 Console.WriteLine("Fatal: " + e.Message + "; did you install " + ENGINE + "?");
......