Skip to content

Commit

Permalink
Fix #19 send loop in DotNet impl killing perf
Browse files Browse the repository at this point in the history
  • Loading branch information
mikerochip committed Nov 1, 2024
1 parent 32a180a commit fcdbfe1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Runtime/Internal/DotNetWebSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ private async Task SendAsync()

if (message == null)
{
await Task.Yield();
await Task.Delay(10, _cancellationToken);
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.mikeschweitzer.websocket",
"version": "2.0.0",
"version": "2.0.1",
"displayName": "WebSocket Client",
"description": "Simple, flexible WebSocket client. Add the WebSocketConnection MonoBehaviour anywhere in your scene.",
"license": "Apache 2.0",
Expand Down

0 comments on commit fcdbfe1

Please sign in to comment.