From 6c7f23f90f1ed7d23cc21ce7fed385791f70b229 Mon Sep 17 00:00:00 2001 From: Syzuna Date: Thu, 11 Apr 2024 23:00:07 +0200 Subject: [PATCH] Drop not needed await --- TwitchLib.EventSub.Websockets/Client/WebsocketClient.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TwitchLib.EventSub.Websockets/Client/WebsocketClient.cs b/TwitchLib.EventSub.Websockets/Client/WebsocketClient.cs index b07a77e..c0385a0 100644 --- a/TwitchLib.EventSub.Websockets/Client/WebsocketClient.cs +++ b/TwitchLib.EventSub.Websockets/Client/WebsocketClient.cs @@ -190,7 +190,9 @@ private async Task ProcessDataAsync() if (buffer.Array == null) continue; - await memory.WriteAsync(buffer.Array, buffer.Offset, receiveResult.Count); +#pragma warning disable CA1849 + memory.Write(buffer.Array, buffer.Offset, receiveResult.Count); +#pragma warning restore CA1849 payloadSize += receiveResult.Count; } while (!receiveResult.EndOfMessage);