SEBWIN-311: Fixed automatic termination of Windows Explorer.
This commit is contained in:
parent
b6dbe6451d
commit
cf28a7f172
1 changed files with 0 additions and 11 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue