|
|
@ -47,9 +47,17 @@ namespace Emby.Server.Implementations.EntryPoints
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
/// <inheritdoc />
|
|
|
|
public Task RunAsync()
|
|
|
|
public Task RunAsync()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_udpServer = new UdpServer(_logger, _appHost, _config);
|
|
|
|
_udpServer = new UdpServer(_logger, _appHost, _config);
|
|
|
|
_udpServer.Start(PortNumber, _cancellationTokenSource.Token);
|
|
|
|
_udpServer.Start(PortNumber, _cancellationTokenSource.Token);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (System.Net.Sockets.SocketException ex)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.LogWarning($"Unable to start AutoDiscovery listener on UDP port {PortNumber} - {ex.Message}");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return Task.CompletedTask;
|
|
|
|
return Task.CompletedTask;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|