Do not send blank frame if not sending leave (#899)

This commit is contained in:
Raja Subramanian authored and GitHub committed 2022-08-09 15:54:59 +05:30
1 parent 4d7df612ec
commit 82439538e7
1 file changed
+1 -1
+1 -1
View File
@@ -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()