mozilla / janus-plugin-sfu

Janus plugin to act as a kind of SFU for game networking data.
Mozilla Public License 2.0
135 stars 40 forks source link

Use SWITCHBOARD.read() instead of SWITCHBOARD.write() in process_data #66

Closed vincentfretin closed 3 years ago

vincentfretin commented 3 years ago

See my comment https://github.com/mozilla/janus-plugin-sfu/issues/62#issuecomment-770406570 We don't seem to change anything in process_data, using read() instead of write() is better to not block concurrent execution with message_threads > 1.

Or is there something I'm missing?

mqp commented 3 years ago

You're not missing anything, this just looks like a mistake. Nice catch.