naia-lib / naia

a cross-platform (including Wasm!) networking library built in Rust. Intended to make multiplayer game development dead-simple & lightning-fast
Apache License 2.0
878 stars 58 forks source link

WebRTC demo client crashes with "Already Borrowed: BorrowMutError" when it can't connect to the server #52

Closed connorcarpenter closed 2 years ago

connorcarpenter commented 2 years ago

as noted by @Oberdiah in: https://github.com/naia-rs/naia-socket/issues/58

It's probably worth demonstrating how to handle this more gracefully in the demo, as it's something that all naia-socket applications will have to handle.

panicked at 'already borrowed: BorrowMutError', naia-client-socket-0.9.0\src\impls\wasm_bindgen\packet_sender.rs:45:70

connorcarpenter commented 2 years ago

Not seeing this anymore, I think this was fixed a while ago