summaryrefslogtreecommitdiffstats
path: root/win/C#/HandBrake.ApplicationServices/Services
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-11-08 20:59:33 +0000
committersr55 <[email protected]>2010-11-08 20:59:33 +0000
commit98f4ed694fcd68a2967a5a85c565e90fe68881da (patch)
tree14ce64d7ba5ade3abcaa9be59c88ffa3a81d302f /win/C#/HandBrake.ApplicationServices/Services
parent3414c8385c5ae742b9066183d5bd84a79fbc1574 (diff)
WinGui;
- Fix a potential crash condition in the encode service. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3662 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/HandBrake.ApplicationServices/Services')
-rw-r--r--win/C#/HandBrake.ApplicationServices/Services/Encode.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/C#/HandBrake.ApplicationServices/Services/Encode.cs b/win/C#/HandBrake.ApplicationServices/Services/Encode.cs
index 11e896768..e4c09793b 100644
--- a/win/C#/HandBrake.ApplicationServices/Services/Encode.cs
+++ b/win/C#/HandBrake.ApplicationServices/Services/Encode.cs
@@ -330,7 +330,7 @@ namespace HandBrake.ApplicationServices.Services
/// </param>
private void HbProcess_Exited(object sender, EventArgs e)
{
- if (HbProcess != null && HbProcess.ExitCode != 0)
+ if (HbProcess != null && HbProcess.HasExited && HbProcess.ExitCode != 0)
{
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));
}