Closed sarahkittyy closed 1 year ago
I changed my app to depend on the unwrap-healing
branch of https://github.com/johanhelsing/matchbox/pull/283. This fixes the issue.
OOh, didn't know #283 would come in handy so fast ;) That's awesome.
unwrap-healing
fixes this fundamentally because instead of panicking if a send fails, it tries to send it instead (and ignores the error).
For now, you could use
bevy_matchbox = { git = "https://github.com/johanhelsing/matchbox", branch = "unwrap-healing", features = ["ggrs"] }
It might be a few days or weeks before unwrap-healing
makes it into a release because I think #286 needs some discussion and will eventually go into #283.
This is a different issue to #113.
To reproduce:
The culprit is this unwrap here: https://github.com/johanhelsing/matchbox/blob/0e8df99735c137699103f15a6f17f8b0fb4be233/matchbox_socket/src/webrtc_socket/mod.rs#L217
Relevant console error: