chore: add check to skip launching TrackEgress for Egress participants (#3125)

Egress participants don't publish, so there is no functionality change
This commit is contained in:
David Zhao
2024-10-21 20:47:41 -07:00
committed by GitHub
parent d4e3c63406
commit 3e7185f264
+1 -1
View File
@@ -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(),