SEBWIN-444: Fixed issue with starting a server exam when reconfiguring.
This commit is contained in:
parent
944461f902
commit
4d05ef8cad
2 changed files with 5 additions and 1 deletions
|
@ -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 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 dialog = uiFactory.CreateExamSelectionDialog(exams);
|
||||||
var result = dialog.Show(splashScreen);
|
var result = dialog.Show();
|
||||||
|
|
||||||
runtime.SubmitExamSelectionResult(args.RequestId, result.Success, result.SelectedExam?.Id);
|
runtime.SubmitExamSelectionResult(args.RequestId, result.Success, result.SelectedExam?.Id);
|
||||||
logger.Info($"Exam selection request with id '{args.RequestId}' is complete.");
|
logger.Info($"Exam selection request with id '{args.RequestId}' is complete.");
|
||||||
|
|
|
@ -146,6 +146,10 @@ namespace SafeExamBrowser.Runtime.Operations
|
||||||
Context.Next.Settings.Server = Context.Current.Settings.Server;
|
Context.Next.Settings.Server = Context.Current.Settings.Server;
|
||||||
Context.Next.Settings.SessionMode = SessionMode.Server;
|
Context.Next.Settings.SessionMode = SessionMode.Server;
|
||||||
}
|
}
|
||||||
|
else if (Context.Next.Settings.SessionMode == SessionMode.Server)
|
||||||
|
{
|
||||||
|
return Perform();
|
||||||
|
}
|
||||||
|
|
||||||
return OperationResult.Success;
|
return OperationResult.Success;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue