Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race condition in Packet.MarshalTo()
This was already fixed by #168 but got lost in #227. in SFUs, in order to distribute a packet to all clients, MarshalTo() is called in parallel by multiple routines, causing a race condition because the padding flag is dynamically set inside MarshalTo(). This is particular annoying when running automated tests. This PR fixes the issue by removing this write operation as discussed in #168.
- Loading branch information