Apply review suggestions

This commit is contained in:
Shadowghost
2023-01-19 19:03:43 +01:00
parent 6954283af3
commit 6e46075414
2 changed files with 7 additions and 9 deletions

View File

@@ -61,14 +61,10 @@ namespace Emby.Server.Implementations.Net
}
/// <inheritdoc />
public ISocket CreateUdpMulticastSocket(IPAddress ipAddress, IPAddress? bindIpAddress, int multicastTimeToLive, int localPort)
public ISocket CreateUdpMulticastSocket(IPAddress ipAddress, IPAddress bindIpAddress, int multicastTimeToLive, int localPort)
{
ArgumentNullException.ThrowIfNull(ipAddress);
if (bindIpAddress == null)
{
bindIpAddress = IPAddress.Any;
}
ArgumentNullException.ThrowIfNull(bindIpAddress);
if (multicastTimeToLive <= 0)
{