mirror of
https://github.com/livekit/livekit.git
synced 2026-04-26 23:55:25 +00:00
03b0a01aad
* Use a queue for add/remove subscribe operations. If subscribe/unsubscribe happens very quickly, the subscription state gets mixed up as things are keyed off of subscriberID. Use a queue of subscribe operations and process it serially. * set up callback for down track added * move the queue on unexpected type * move the queue if removeSubscirber does not have a subscribed track