Skip to content

Commit

Permalink
Update LavalinkSocket.cs
Browse files Browse the repository at this point in the history
Signed-off-by: Angelo Breuer <[email protected]>
  • Loading branch information
angelobreuer authored Aug 14, 2024
1 parent e165a83 commit e01651a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Lavalink4NET/Socket/LavalinkSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ private async Task ReceiveInternalAsync(WebSocket webSocket, Memory<byte> receiv
await ProcessAsync(buffer, cancellationToken).ConfigureAwait(false);
}
}
catch (OperationCanceledException)
{
// Ignore
}
catch (Exception exception)
{
_logger.CommunicationError(Label, exception);
Expand Down Expand Up @@ -314,4 +318,4 @@ internal static partial class Logging

[LoggerMessage(6, LogLevel.Warning, "[{Label}] An error occurred while dispatching the ConnectionClosed event.", EventName = nameof(ErrorConnectionClosedEvent))]
public static partial void ErrorConnectionClosedEvent(this ILogger<LavalinkSocket> logger, string label, Exception exception);
}
}

0 comments on commit e01651a

Please sign in to comment.