From 156453cc42dff7e6c01ddd72eec01fe852dbeb22 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 7 May 2013 14:55:24 -0400 Subject: [PATCH] fixes #65 - When changing the port number server do not prompt for restart --- .../ServerManager/ServerManager.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MediaBrowser.Server.Implementations/ServerManager/ServerManager.cs b/MediaBrowser.Server.Implementations/ServerManager/ServerManager.cs index 2131d9011..6b33f1145 100644 --- a/MediaBrowser.Server.Implementations/ServerManager/ServerManager.cs +++ b/MediaBrowser.Server.Implementations/ServerManager/ServerManager.cs @@ -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(); } }