Skip to content

Commit

Permalink
Fixes a bug in ProcessRunner
Browse files Browse the repository at this point in the history
Asking for the exit code before the process has ended (or in the case of the timeout handling code, killed), will cause an exception.
  • Loading branch information
atruskie committed May 8, 2018
1 parent f5e027a commit 5b82297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Acoustics.Shared/ProcessRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ private void ProcessTimeout(string arguments, string workingDirectory, int retry
{
if (Log.IsVerboseEnabled())
{
Log.Verbose(this.instanceId + ": Process timeout handling code. Exit code: " + this.process.ExitCode);
Log.Verbose(this.instanceId + ": Process timeout handling code... Attempting to kill process");
}

this.process.Refresh();
Expand Down

0 comments on commit 5b82297

Please sign in to comment.