The Free Software Media System - Server Backend & API
update server restart
Luke Pulverenti6623fe10ee1f
diff --git a/MediaBrowser.Server.Mono/MonoAppHost.cs b/MediaBrowser.Server.Mono/MonoAppHost.csindex c94334e893..609497eed9 100644--- a/MediaBrowser.Server.Mono/MonoAppHost.cs+++ b/MediaBrowser.Server.Mono/MonoAppHost.cs@@ -25,7 +25,7 @@ namespace MediaBrowser.Server.Monoget{// A restart script must be provided- return StartupOptions.ContainsOption("-restartpath") && StartupOptions.ContainsOption("-ffmpeg");+ return StartupOptions.ContainsOption("-restartpath");}}diff --git a/SocketHttpListener/Net/EndPointListener.cs b/SocketHttpListener/Net/EndPointListener.csindex 2b1479e423..48c0ae7cbc 100644--- a/SocketHttpListener/Net/EndPointListener.cs+++ b/SocketHttpListener/Net/EndPointListener.cs@@ -93,6 +93,15 @@ namespace SocketHttpListener.Net}}+ try+ {+ sock.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);+ }+ catch (SocketException)+ {+ // This is not supported on all operating systems (qnap)+ }+sock.Bind(endpoint);// This is the number TcpListener uses.