Skip to content

Conversation

zach-r-d
Copy link

Call ms.ToArray() outside of the lock (IncomingMessageLock) sections in Receive(). This prevents the Unity main thread blocking on IncomingMessageLock if ms.ToArray() is copying a large number of bytes.

Call `ms.ToArray()` outside of the `lock (IncomingMessageLock)` sections in `Receive()`. This prevents the Unity main thread blocking on `IncomingMessageLock` if `ms.ToArray()` is copying a large number of bytes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant