aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Startup.Common
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-09-21 13:14:11 -0400
committerGitHub <noreply@github.com>2016-09-21 13:14:11 -0400
commit22fa3eca16d874a43abb5b899e61626eedcea7b4 (patch)
tree361e5ddc08370ae6c50b1ebdf03b9f4ee9858e90 /MediaBrowser.Server.Startup.Common
parentd61258f29033f53479104c45c32f15ba8d08e200 (diff)
parentd94598a75e303c0b4f76392e1e26b819d73e87c1 (diff)
Merge pull request #2183 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Server.Startup.Common')
-rw-r--r--MediaBrowser.Server.Startup.Common/ApplicationHost.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs
index d8d3614e6..9312e1501 100644
--- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs
+++ b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs
@@ -873,6 +873,23 @@ namespace MediaBrowser.Server.Startup.Common
try
{
ServerManager.Start(GetUrlPrefixes(), CertificatePath);
+ return;
+ }
+ catch (Exception ex)
+ {
+ Logger.ErrorException("Error starting http server", ex);
+
+ if (HttpPort == 8096)
+ {
+ throw;
+ }
+ }
+
+ HttpPort = 8096;
+
+ try
+ {
+ ServerManager.Start(GetUrlPrefixes(), CertificatePath);
}
catch (Exception ex)
{