SEBWIN-449: Ensured participant leaves meeting on proctoring reconfiguration instruction.
This commit is contained in:
parent
590e152ea2
commit
f8ffcd173a
1 changed files with 10 additions and 5 deletions
|
@ -184,13 +184,18 @@ namespace SafeExamBrowser.Proctoring
|
||||||
|
|
||||||
private void StopProctoring()
|
private void StopProctoring()
|
||||||
{
|
{
|
||||||
if (window != default(IProctoringWindow))
|
if (control != default(ProctoringControl) && window != default(IProctoringWindow))
|
||||||
{
|
{
|
||||||
window.Close();
|
control.Dispatcher.Invoke(() =>
|
||||||
window = default(IProctoringWindow);
|
{
|
||||||
fileSystem.Delete(filePath);
|
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.");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue