fix agent jobs not launching when using the CreateRoom API (#2784)

This commit is contained in:
Théo Monnom
2024-06-13 00:00:02 +02:00
committed by GitHub
parent 8064e1673c
commit 5def48bad9

View File

@@ -104,7 +104,7 @@ func (s *RoomService) CreateRoom(ctx context.Context, req *livekit.CreateRoomReq
defer done()
if created {
go s.agentClient.LaunchJob(ctx, &agent.JobDescription{
go s.agentClient.LaunchJob(context.Background(), &agent.JobDescription{
JobType: livekit.JobType_JT_ROOM,
Room: rm,
})