From e165a832b4a916faf1e9683550a4eadf5ca32ea8 Mon Sep 17 00:00:00 2001 From: Angelo Breuer <46497296+angelobreuer@users.noreply.github.com> Date: Wed, 14 Aug 2024 09:45:26 +0200 Subject: [PATCH 1/2] chore: Bump version (4.0.21) Signed-off-by: Angelo Breuer <46497296+angelobreuer@users.noreply.github.com> --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a723fb0d..2ded20fd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,7 @@ jobs: run: dotnet restore src/Lavalink4NET.sln - name: Build - run: dotnet build src/Lavalink4NET.sln --no-restore --configuration ${{ matrix.configuration }} /property:Version=4.0.20 + run: dotnet build src/Lavalink4NET.sln --no-restore --configuration ${{ matrix.configuration }} /property:Version=4.0.21 - name: Run tests working-directory: ci From e01651a48c2797bcf12df67c01b95402086ce070 Mon Sep 17 00:00:00 2001 From: Angelo Breuer <46497296+angelobreuer@users.noreply.github.com> Date: Wed, 14 Aug 2024 09:52:00 +0200 Subject: [PATCH 2/2] Update LavalinkSocket.cs Signed-off-by: Angelo Breuer <46497296+angelobreuer@users.noreply.github.com> --- src/Lavalink4NET/Socket/LavalinkSocket.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Lavalink4NET/Socket/LavalinkSocket.cs b/src/Lavalink4NET/Socket/LavalinkSocket.cs index 114c5a42..c6ae46bd 100644 --- a/src/Lavalink4NET/Socket/LavalinkSocket.cs +++ b/src/Lavalink4NET/Socket/LavalinkSocket.cs @@ -217,6 +217,10 @@ private async Task ReceiveInternalAsync(WebSocket webSocket, Memory receiv await ProcessAsync(buffer, cancellationToken).ConfigureAwait(false); } } + catch (OperationCanceledException) + { + // Ignore + } catch (Exception exception) { _logger.CommunicationError(Label, exception); @@ -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 logger, string label, Exception exception); -} \ No newline at end of file +}