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 || if (ServerConfigurationManager.Configuration.HttpServerPortNumber != HttpPort ||
ServerConfigurationManager.Configuration.HttpsPortNumber != HttpsPort) ServerConfigurationManager.Configuration.HttpsPortNumber != HttpsPort)
{ {
ServerConfigurationManager.Configuration.IsPortAuthorized = false; if (ServerConfigurationManager.Configuration.IsPortAuthorized)
ServerConfigurationManager.SaveConfiguration(); {
ServerConfigurationManager.Configuration.IsPortAuthorized = false;
ServerConfigurationManager.SaveConfiguration();
requiresRestart = true; requiresRestart = true;
}
} }
} }