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 pion#168 but got lost in pion#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 pion#168.
- Loading branch information