Skip to content

Commit

Permalink
fix: Avoid concurrent operations for _participants during Room._clean…
Browse files Browse the repository at this point in the history
…Up().
  • Loading branch information
cloudwebrtc committed Dec 8, 2022
1 parent 0f5d1b9 commit 4381287
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/core/room.dart
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,8 @@ extension RoomPrivateMethods on Room {
logger.fine('[${objectId}] cleanUp()');

// clean up RemoteParticipants
for (final participant in _participants.values) {
var participants = _participants.values.toList();
for (final participant in participants) {
// RemoteParticipant is responsible for disposing resources
await participant.dispose();
}
Expand Down

0 comments on commit 4381287

Please sign in to comment.