diff --git a/SafeExamBrowser.Configuration/ConfigurationData/DataMapping/ServerDataMapper.cs b/SafeExamBrowser.Configuration/ConfigurationData/DataMapping/ServerDataMapper.cs index 125cbc4f..534a4f84 100644 --- a/SafeExamBrowser.Configuration/ConfigurationData/DataMapping/ServerDataMapper.cs +++ b/SafeExamBrowser.Configuration/ConfigurationData/DataMapping/ServerDataMapper.cs @@ -26,9 +26,6 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping case Keys.Server.PerformFallback: MapPerformFallback(settings, value); break; - case Keys.Server.PingInterval: - MapPingInterval(settings, value); - break; case Keys.Server.RequestAttempts: MapRequestAttempts(settings, value); break; @@ -72,6 +69,11 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping { settings.Server.Institution = institution; } + + if (configuration.TryGetValue(Keys.Server.PingInterval, out v) && v is int interval) + { + settings.Server.PingInterval = interval; + } } } @@ -91,14 +93,6 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping } } - private void MapPingInterval(AppSettings settings, object value) - { - if (value is int interval) - { - settings.Server.PingInterval = interval; - } - } - private void MapRequestAttempts(AppSettings settings, object value) { if (value is int attempts)