From 3e7185f264f716f65236ce9ed657a22762d270b1 Mon Sep 17 00:00:00 2001 From: David Zhao Date: Mon, 21 Oct 2024 20:47:41 -0700 Subject: [PATCH] chore: add check to skip launching TrackEgress for Egress participants (#3125) Egress participants don't publish, so there is no functionality change --- pkg/rtc/room.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rtc/room.go b/pkg/rtc/room.go index 7c1918d2..1995a3b9 100644 --- a/pkg/rtc/room.go +++ b/pkg/rtc/room.go @@ -1222,7 +1222,7 @@ func (r *Room) onTrackPublished(participant types.LocalParticipant, track types. }() } } - if r.internal != nil && r.internal.TrackEgress != nil { + if participant.Kind() != livekit.ParticipantInfo_EGRESS && r.internal != nil && r.internal.TrackEgress != nil { go func() { if err := StartTrackEgress( context.Background(),