From 25022295e1daba84d898a1ea1c3daf88040dcf0f Mon Sep 17 00:00:00 2001 From: dbuechel Date: Thu, 28 Mar 2019 09:29:21 +0100 Subject: [PATCH] SEBWIN-226: Forgot to stop the action center activators on application termination. --- SafeExamBrowser.Client/Operations/ShellOperation.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/SafeExamBrowser.Client/Operations/ShellOperation.cs b/SafeExamBrowser.Client/Operations/ShellOperation.cs index 79f6ac56..ec10f2c9 100644 --- a/SafeExamBrowser.Client/Operations/ShellOperation.cs +++ b/SafeExamBrowser.Client/Operations/ShellOperation.cs @@ -94,6 +94,7 @@ namespace SafeExamBrowser.Client.Operations logger.Info("Terminating shell..."); StatusChanged?.Invoke(TextKey.OperationStatus_TerminateShell); + TerminateActivators(); TerminateNotifications(); TerminateSystemComponents(); @@ -267,6 +268,17 @@ namespace SafeExamBrowser.Client.Operations } } + private void TerminateActivators() + { + if (actionCenterSettings.EnableActionCenter) + { + foreach (var activator in activators) + { + activator.Stop(); + } + } + } + private void TerminateNotifications() { aboutController.Terminate();