mirror of
https://github.com/livekit/livekit.git
synced 2026-11-12 20:49:07 +00:00
whipService.Create waits for every track listed in SubscribedParticipantTracks. The errgroup context was discarded and each goroutine only exited once its track was subscribed, so a track that never appears (a wrong name, a publisher that left) kept the request and a polling goroutine per track running forever, long after the caller had timed out. Move the wait into waitForSubscribedTracks and have it return when the request context is done or the participant has closed. Fixes #5152