|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
using System.Net.Sockets;
|
|
|
|
using System.Threading;
|
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using Emby.Server.Implementations.Udp;
|
|
|
|
using Emby.Server.Implementations.Udp;
|
|
|
@ -53,7 +54,7 @@ namespace Emby.Server.Implementations.EntryPoints
|
|
|
|
_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)
|
|
|
|
catch (SocketException ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_logger.LogWarning(ex, "Unable to start AutoDiscovery listener on UDP port {PortNumber}", PortNumber);
|
|
|
|
_logger.LogWarning(ex, "Unable to start AutoDiscovery listener on UDP port {PortNumber}", PortNumber);
|
|
|
|
}
|
|
|
|
}
|
|
|
|