fishjam-dev / react-native-membrane-webrtc

Apache License 2.0
78 stars 8 forks source link

[MV-461] Fix crashes when many peers leave room at once #110

Closed graszka22 closed 1 year ago

graszka22 commented 1 year ago

The crashes are generally caused by modyfying participants map in different threads (native modules thread, main thread and webrtc threads). Now I'm executing everything on the main thread so there shouldn't be any problem. This shouldn't have any big impacts on performance since those operations are quick and without i/o. Related PR: https://github.com/jellyfish-dev/membrane-webrtc-android/pull/42