fixes #65 - When changing the port number server do not prompt for restart

This commit is contained in:
Luke Pulverenti 2013-05-07 14:55:24 -04:00
parent de6acec504
commit 156453cc42

View File

@ -355,12 +355,12 @@ namespace MediaBrowser.Server.Implementations.ServerManager
if (!string.Equals(HttpServer.UrlPrefix, _kernel.HttpServerUrlPrefix, StringComparison.OrdinalIgnoreCase))
{
ReloadHttpServer();
_applicationHost.NotifyPendingRestart();
}
if (!SupportsNativeWebSocket && ExternalWebSocketServer != null && ExternalWebSocketServer.Port != ConfigurationManager.Configuration.LegacyWebSocketPortNumber)
else if (!SupportsNativeWebSocket && ExternalWebSocketServer != null && ExternalWebSocketServer.Port != ConfigurationManager.Configuration.LegacyWebSocketPortNumber)
{
ReloadExternalWebSocketServer();
_applicationHost.NotifyPendingRestart();
}
}