From 82439538e74ed9eadfedbfb8917bf3a94c41f46d Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Tue, 9 Aug 2022 15:54:59 +0530 Subject: [PATCH] Do not send blank frame if not sending leave (#899) --- pkg/rtc/participant.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()