From: sr55 Date: Mon, 8 Apr 2019 19:45:30 +0000 (+0100) Subject: WinGui: Fix Race Condition crash when cancelling scan. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c1e6442015619e9d2ca53d8868007d3550d3cd4;p=handbrake WinGui: Fix Race Condition crash when cancelling scan. --- diff --git a/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs b/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs index bf7e3ce30..139a62e8d 100644 --- a/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs +++ b/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs @@ -169,6 +169,7 @@ namespace HandBrake.Interop.Interop [HandleProcessCorruptedStateExceptions] public void StopScan() { + this.scanPollTimer.Stop(); HBFunctions.hb_scan_stop(this.Handle); }