SEBWIN-449: Ensured participant leaves meeting on proctoring reconfiguration instruction.

This commit is contained in:
Damian Büchel 2021-05-12 16:15:49 +02:00
parent 590e152ea2
commit f8ffcd173a

View file

@ -184,13 +184,18 @@ namespace SafeExamBrowser.Proctoring
private void StopProctoring()
{
if (window != default(IProctoringWindow))
if (control != default(ProctoringControl) && window != default(IProctoringWindow))
{
window.Close();
window = default(IProctoringWindow);
fileSystem.Delete(filePath);
control.Dispatcher.Invoke(() =>
{
control.ExecuteScriptAsync("api.executeCommand('hangup'); api.dispose();");
window.Close();
control = default(ProctoringControl);
window = default(IProctoringWindow);
fileSystem.Delete(filePath);
logger.Info("Stopped proctoring.");
logger.Info("Stopped proctoring.");
});
}
}