mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-15 23:02:18 +01:00
update socket methods
This commit is contained in:
@@ -177,11 +177,15 @@ namespace Rssdp.Infrastructure
|
||||
{
|
||||
try
|
||||
{
|
||||
await socket.SendAsync(messageData, messageData.Length, destination, cancellationToken).ConfigureAwait(false);
|
||||
await socket.SendWithLockAsync(messageData, messageData.Length, destination, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
catch (ObjectDisposedException)
|
||||
{
|
||||
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -341,11 +345,9 @@ namespace Rssdp.Infrastructure
|
||||
|
||||
foreach (var socket in sockets)
|
||||
{
|
||||
await socket.SendAsync(messageData, messageData.Length, destination, cancellationToken).ConfigureAwait(false);
|
||||
await SendFromSocket(socket, messageData, destination, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
|
||||
ThrowIfDisposed();
|
||||
}
|
||||
|
||||
private ISocket ListenForBroadcastsAsync()
|
||||
|
||||
Reference in New Issue
Block a user