mirror of
https://github.com/livekit/livekit.git
synced 2026-04-05 03:45:44 +00:00
Fix race condition with Transport negotiations
This commit is contained in:
@@ -344,7 +344,7 @@ func (r *RoomManager) rtcSessionWorker(room *rtc.Room, participant types.Partici
|
||||
|
||||
for {
|
||||
select {
|
||||
case <-time.After(time.Millisecond * 100):
|
||||
case <-time.After(time.Millisecond * 50):
|
||||
// periodic check to ensure participant didn't become disconnected
|
||||
if participant.State() == livekit.ParticipantInfo_DISCONNECTED {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user