Pass back serverRegion in when participant's joining (#479)

* Pass back serverRegion in when participant's joining

* fix tests

* protocol update
This commit is contained in:
David Zhao
2022-03-02 13:36:19 -08:00
committed by GitHub
parent c743d2ab3a
commit 7a5b5dbc69
8 changed files with 29 additions and 24 deletions
+1 -1
View File
@@ -258,7 +258,7 @@ func (r *RoomManager) StartSession(ctx context.Context, roomName livekit.RoomNam
opts := rtc.ParticipantOptions{
AutoSubscribe: pi.AutoSubscribe,
}
if err = room.Join(participant, &opts, r.iceServersForRoom(room.Room)); err != nil {
if err = room.Join(participant, &opts, r.iceServersForRoom(room.Room), r.currentNode.Region); err != nil {
pLogger.Errorw("could not join room", err)
_ = participant.Close(true)
return