mirror of
https://github.com/livekit/livekit.git
synced 2026-04-04 16:55:45 +00:00
Unless there are no published tracks, declare connected on primary PC connected. Streamlining this a bit. A bit of history - With original migration, migration complete was declared on all tracks published. - When muted tracks has to be migrated, a publish is synthesised for muted tracks, but migration complete did not wait till publisher peer connection connected. - A few weeks back, those paths were merged and all cases were changed to use synthesised publish. - Previously the completion point was different between muted and unmuted tracks. And with the change to treat everything like a muted track, completion point changed. Change it so that if publisher PC is expected to be active, wait for it to be connected before declaring migration complete.