summaryrefslogtreecommitdiffstats
path: root/win/C#/EncodeQueue/Encode.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-06-13 19:55:49 +0000
committersr55 <[email protected]>2009-06-13 19:55:49 +0000
commit5cfad5e676367d676220e75c2da3a72bc0732459 (patch)
treeb8c8e3b113510891c978b99584c3b27a849a6033 /win/C#/EncodeQueue/Encode.cs
parent61ee3250a66a273d3bf7b7594b5b8656993bc33f (diff)
WinGui:
- New subtitle tab. All complaints to j45 please. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2531 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/EncodeQueue/Encode.cs')
-rw-r--r--win/C#/EncodeQueue/Encode.cs15
1 files changed, 3 insertions, 12 deletions
diff --git a/win/C#/EncodeQueue/Encode.cs b/win/C#/EncodeQueue/Encode.cs
index 22518bfb2..c0e0b7c3e 100644
--- a/win/C#/EncodeQueue/Encode.cs
+++ b/win/C#/EncodeQueue/Encode.cs
@@ -86,18 +86,9 @@ namespace Handbrake.EncodeQueue
/// </summary>
public void closeCLI(EncodeProcess ep)
{
- Process[] prs = Process.GetProcesses();
- foreach (Process process in prs)
- {
- if (process.Id == ep.processID)
- {
- process.Refresh();
- if (!process.HasExited)
- process.Kill();
-
- process.WaitForExit();
- }
- }
+ Process cli = Process.GetProcessById(ep.processID);
+ if (!cli.HasExited)
+ cli.Kill();
}
/// <summary>