File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -379,6 +379,7 @@ class Room extends DisposableChangeNotifier with EventsEmittable<RoomEvent> {
379379
380380 for (final participant in copy) {
381381 events.emit (ParticipantDisconnectedEvent (participant: participant));
382+ await participant.removeAllPublishedTracks (notify: false );
382383 await participant.dispose ();
383384 }
384385 notifyListeners ();
@@ -730,6 +731,7 @@ extension RoomPrivateMethods on Room {
730731 // clean up RemoteParticipants
731732 var participants = _remoteParticipants.values.toList ();
732733 for (final participant in participants) {
734+ await participant.removeAllPublishedTracks (notify: false );
733735 // RemoteParticipant is responsible for disposing resources
734736 await participant.dispose ();
735737 }
You can’t perform that action at this time.
0 commit comments