/// </summary>\r
protected Process HbProcess { get; set; }\r
\r
+ private bool processKilled;\r
+\r
/// <summary>\r
/// Gets a value indicating whether IsEncoding.\r
/// </summary>\r
{\r
try\r
{\r
- if (this.HbProcess != null && !this.HbProcess.HasExited) this.HbProcess.Kill();\r
+ if (this.HbProcess != null && !this.HbProcess.HasExited)\r
+ {\r
+ processKilled = true;\r
+ this.HbProcess.Kill();\r
+ }\r
}\r
catch (Exception exc)\r
{\r
/// </param>\r
private void HbProcess_Exited(object sender, EventArgs e)\r
{\r
- if (HbProcess != null && HbProcess.HasExited && HbProcess.ExitCode != 0)\r
+ if (HbProcess != null && HbProcess.HasExited && HbProcess.ExitCode != 0 && !processKilled)\r
{\r
errorService.ShowError("It appears that HandBrakeCLI has crashed. You can check the Activity Log for further information.", string.Format("Exit Code was: {0}", HbProcess.ExitCode));\r
}\r