mirror of
https://github.com/livekit/livekit.git
synced 2026-03-31 17:35:39 +00:00
* Do not block on down track close with flush. When publisher removes all subscribers, publisher side should not be blocked for long. With close with flush, it could happen if there a lot of bunch of subscribers. So, when is expected, run it in a goroutine like it is done in subscription manager. Not moving the entire `RemoveSubscriber` bit to subscription manager as there are two bits which are not tracked now - mime type - willBeResumed Those two would have to be tracked in track manager and notified to subscription manager so that it can act for that mine and if the track will be resumed or not. As that touch more parts and could get complicated, doing the simpler thing of cloning behaviour from subscription manager for now. * clean up * code readability