auto create rooms during create agent dispatch api request (#3158)

This commit is contained in:
Paul Wells
2024-11-05 16:15:05 -08:00
committed by GitHub
parent 365e63230d
commit 09f140afa8
7 changed files with 75 additions and 111 deletions
-7
View File
@@ -524,13 +524,6 @@ func (s *RTCService) startConnection(
var cr connectionResult
var err error
if !s.roomAllocator.CreateRoomEnabled() {
cr.Room, _, _, err = s.roomAllocator.CreateRoom(ctx, pi.CreateRoom, false)
if err != nil {
return cr, nil, err
}
}
if err := s.roomAllocator.SelectRoomNode(ctx, roomName, ""); err != nil {
return cr, nil, err
}