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)
|
private void HandleExplorerStart(IProcess process)
|
||||||
{
|
{
|
||||||
logger.Warn($"A new instance of Windows Explorer {process} has been started!");
|
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());
|
Task.Run(() => ExplorerStarted?.Invoke());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue