From 56bf9b80b9b55ecaec9855addda41898261d26b1 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 2 Sep 2012 15:12:06 +0000 Subject: WinGui: Further work and fixes on the Process Isolation Service git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4929 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs') diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index a22fa83d9..3e8b5709f 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -827,6 +827,13 @@ namespace HandBrakeWPF.ViewModels isolatedScanService.Disconnect(); } + IIsolatedEncodeService isolatedEncodeService = this.encodeService as IIsolatedEncodeService; + if (isolatedEncodeService != null) + { + // Kill any background services for this instance of HandBrake. + isolatedEncodeService.Disconnect(); + } + // Unsubscribe from Events. this.scanService.ScanStared -= this.ScanStared; this.scanService.ScanCompleted -= this.ScanCompleted; -- cgit v1.2.3