diff --git a/pkg/service/roommanager_service.go b/pkg/service/roommanager_service.go index c6f9333c..0b5ce6d7 100644 --- a/pkg/service/roommanager_service.go +++ b/pkg/service/roommanager_service.go @@ -149,7 +149,7 @@ func (s whipService) Create(ctx context.Context, req *rpc.WHIPCreateRequest) (*r var iceServers []*livekit.ICEServer apiKey, _, err := s.RoomManager.getFirstKeyPair() - if err != nil { + if err == nil { iceServers = s.RoomManager.iceServersForParticipant( apiKey, lp,