SEBWIN-444: Fixed issue with starting a server exam when reconfiguring.

This commit is contained in:
Damian Büchel 2020-12-03 18:19:18 +01:00
parent 944461f902
commit 4d05ef8cad
2 changed files with 5 additions and 1 deletions

View file

@ -429,7 +429,7 @@ namespace SafeExamBrowser.Client
var exams = args.Exams.Select(e => new Exam { Id = e.id, LmsName = e.lms, Name = e.name, Url = e.url });
var dialog = uiFactory.CreateExamSelectionDialog(exams);
var result = dialog.Show(splashScreen);
var result = dialog.Show();
runtime.SubmitExamSelectionResult(args.RequestId, result.Success, result.SelectedExam?.Id);
logger.Info($"Exam selection request with id '{args.RequestId}' is complete.");

View file

@ -146,6 +146,10 @@ namespace SafeExamBrowser.Runtime.Operations
Context.Next.Settings.Server = Context.Current.Settings.Server;
Context.Next.Settings.SessionMode = SessionMode.Server;
}
else if (Context.Next.Settings.SessionMode == SessionMode.Server)
{
return Perform();
}
return OperationResult.Success;
}