正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -73,7 +73,7 @@ constructor( | @@ -73,7 +73,7 @@ constructor( | ||
| 73 | 73 | ||
| 74 | private fun handleParticipantDisconnect(sid: String, participant: RemoteParticipant) { | 74 | private fun handleParticipantDisconnect(sid: String, participant: RemoteParticipant) { |
| 75 | val removedParticipant = mutableRemoteParticipants.remove(sid) ?: return | 75 | val removedParticipant = mutableRemoteParticipants.remove(sid) ?: return |
| 76 | - removedParticipant.tracks.values.forEach { publication -> | 76 | + removedParticipant.tracks.values.toList().forEach { publication -> |
| 77 | removedParticipant.unpublishTrack(publication.sid) | 77 | removedParticipant.unpublishTrack(publication.sid) |
| 78 | } | 78 | } |
| 79 | 79 |
-
请 注册 或 登录 后发表评论