summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2021-01-11 20:12:47 +0000
committersr55 <[email protected]>2021-01-11 20:12:47 +0000
commitf28ded92e1cd87d59a688129c73c8eefb5c6dd14 (patch)
tree90f2d975a062ebcf696b613f898367dca888e52e /win
parent0b23e2d421f3edac2b06f968aa4a7b4b7e057273 (diff)
WinGui: Fix a log file access error that could occur in remote instance mode
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrakeWPF/Services/Encode/LibEncode.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/LibEncode.cs b/win/CS/HandBrakeWPF/Services/Encode/LibEncode.cs
index 8e9e9f9bc..2ac9beb7c 100644
--- a/win/CS/HandBrakeWPF/Services/Encode/LibEncode.cs
+++ b/win/CS/HandBrakeWPF/Services/Encode/LibEncode.cs
@@ -280,13 +280,13 @@ namespace HandBrakeWPF.Services.Encode
string hbLog = this.ProcessLogs(this.currentTask.Destination);
long filesize = this.GetFilesize(this.currentTask.Destination);
+ this.logInstanceManager.Deregister(Path.GetFileName(hbLog));
+
// Raise the Encode Completed Event.
this.InvokeEncodeCompleted(
e.Error != 0
? new EventArgs.EncodeCompletedEventArgs(false, null, e.Error.ToString(), this.currentTask.Source, this.currentTask.Destination, hbLog, filesize)
: new EventArgs.EncodeCompletedEventArgs(true, null, string.Empty, this.currentTask.Source, this.currentTask.Destination, hbLog, filesize));
-
- this.logInstanceManager.Deregister(Path.GetFileName(hbLog));
}
private long GetFilesize(string destination)