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

@ -842,6 +842,8 @@ namespace MediaBrowser.Server.Startup.Common
// Need to restart if ports have changed
if (ServerConfigurationManager.Configuration.HttpServerPortNumber != HttpPort ||
ServerConfigurationManager.Configuration.HttpsPortNumber != HttpsPort)
{
if (ServerConfigurationManager.Configuration.IsPortAuthorized)
{
ServerConfigurationManager.Configuration.IsPortAuthorized = false;
ServerConfigurationManager.SaveConfiguration();
@ -849,6 +851,7 @@ namespace MediaBrowser.Server.Startup.Common
requiresRestart = true;
}
}
}
if (!HttpServer.UrlPrefixes.SequenceEqual(GetUrlPrefixes(), StringComparer.OrdinalIgnoreCase))
{