diff options
author | sr55 <[email protected]> | 2020-09-05 21:46:30 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2020-09-05 21:46:30 +0100 |
commit | 50535c33e0a4734a1f15b26e87db101854e2b96f (patch) | |
tree | 62df19eb608c89e83457404e9944d84d696ed6d4 /win/CS/HandBrakeWPF/Instance | |
parent | 1cdd6e4e7c824eac273e2bf5f752a6d02bff966e (diff) |
WinGui: Various fixes to the log window when using muilti-instance.
Diffstat (limited to 'win/CS/HandBrakeWPF/Instance')
-rw-r--r-- | win/CS/HandBrakeWPF/Instance/RemoteInstance.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Instance/RemoteInstance.cs b/win/CS/HandBrakeWPF/Instance/RemoteInstance.cs index 01a91c948..a6b7d7446 100644 --- a/win/CS/HandBrakeWPF/Instance/RemoteInstance.cs +++ b/win/CS/HandBrakeWPF/Instance/RemoteInstance.cs @@ -11,6 +11,7 @@ namespace HandBrakeWPF.Instance { using System; + using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Text; @@ -278,7 +279,14 @@ namespace HandBrakeWPF.Instance this.encodePollTimer.Stop(); if (this.workerProcess != null && !this.workerProcess.HasExited) { - this.workerProcess?.Kill(); + try + { + this.workerProcess?.Kill(); + } + catch (Win32Exception e) + { + Debug.WriteLine(e); + } } this.EncodeCompleted?.Invoke(sender: this, e: new EncodeCompletedEventArgs(state.WorkDone.Error)); |