mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-08 23:00:51 +02:00
update server restart
This commit is contained in:
parent
f98e42fc3b
commit
6623fe10ee
|
@ -25,7 +25,7 @@ namespace MediaBrowser.Server.Mono
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
// A restart script must be provided
|
// A restart script must be provided
|
||||||
return StartupOptions.ContainsOption("-restartpath") && StartupOptions.ContainsOption("-ffmpeg");
|
return StartupOptions.ContainsOption("-restartpath");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
sock.Bind(endpoint);
|
||||||
|
|
||||||
// This is the number TcpListener uses.
|
// This is the number TcpListener uses.
|
||||||
|
|
Loading…
Reference in a new issue