fix: Avoid concurrent operations for _participants during Room._cleanUp().
This commit is contained in:
@@ -594,7 +594,8 @@ extension RoomPrivateMethods on Room {
|
|||||||
logger.fine('[${objectId}] cleanUp()');
|
logger.fine('[${objectId}] cleanUp()');
|
||||||
|
|
||||||
// clean up RemoteParticipants
|
// 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
|
// RemoteParticipant is responsible for disposing resources
|
||||||
await participant.dispose();
|
await participant.dispose();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user