resolve loop when updating local ports

This commit is contained in:
Luke Pulverenti 2015-02-10 23:05:58 -05:00
parent 5d4fec778c
commit 886033be24

View File

@ -843,10 +843,13 @@ namespace MediaBrowser.Server.Startup.Common
if (ServerConfigurationManager.Configuration.HttpServerPortNumber != HttpPort ||
ServerConfigurationManager.Configuration.HttpsPortNumber != HttpsPort)
{
ServerConfigurationManager.Configuration.IsPortAuthorized = false;
ServerConfigurationManager.SaveConfiguration();
if (ServerConfigurationManager.Configuration.IsPortAuthorized)
{
ServerConfigurationManager.Configuration.IsPortAuthorized = false;
ServerConfigurationManager.SaveConfiguration();
requiresRestart = true;
requiresRestart = true;
}
}
}