mirror of
https://github.com/livekit/livekit.git
synced 2026-12-04 11:28:11 +00:00
* rtc: hold the disconnect cleanup while a participant migrates out The disconnect cleanup closes a participant as a leave 5 s after a transport failure. A participant that is migrating to another node at that moment is reported as gone while its session continues there. LocalParticipantHelper.IsMigratingOut reports whether another node is taking over the participant. While it is true, the cleanup checks again every 5 s, for at most 75 s. The room manager here returns false. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * rtc: a disconnect cleanup cleared during its migration check does not close The cleanup checked that its timer was still set before a reset, but not before a close. A check that was in flight when the timer was cleared could still close the participant. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * rtc: clarify the disconnect cleanup comments Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>