diff --git a/pkg/rtc/participant.go b/pkg/rtc/participant.go index 9482a97a1..fe31eec9b 100644 --- a/pkg/rtc/participant.go +++ b/pkg/rtc/participant.go @@ -783,7 +783,7 @@ func (p *ParticipantImpl) Close(sendLeave bool, reason types.ParticipantCloseRea // Close will block. go func() { for _, dt := range downTracksToClose { - dt.Close() + dt.CloseWithFlush(sendLeave) } p.publisher.Close()