Skip to content

Commit

Permalink
Drop not needed await
Browse files Browse the repository at this point in the history
  • Loading branch information
Syzuna committed Apr 11, 2024
1 parent 908b87d commit 6c7f23f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion TwitchLib.EventSub.Websockets/Client/WebsocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6c7f23f

Please sign in to comment.