SEBWIN-311: Fixed automatic termination of Windows Explorer.

This commit is contained in:
dbuechel 2019-10-29 16:09:25 +01:00
parent b6dbe6451d
commit cf28a7f172

View file

@ -250,17 +250,6 @@ namespace SafeExamBrowser.Monitoring.Applications
private void HandleExplorerStart(IProcess process)
{
logger.Warn($"A new instance of Windows Explorer {process} has been started!");
if (!TryTerminate(process))
{
var application = new RunningApplication("Windows Explorer");
logger.Error("Failed to terminate new Windows Explorer instance!");
application.Processes.Add(process);
Task.Run(() => TerminationFailed?.Invoke(new[] { application }));
}
Task.Run(() => ExplorerStarted?.Invoke());
}