From 6633bf93726fc88f1389397b72c5d327461edd27 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Fri, 29 Aug 2025 22:22:32 +0530 Subject: [PATCH] Use departure timeout from room preset. (#3888) Not sure why only that was applying from req which is effectively a no-op as the clone is a replica of the req. Guess, it was a typo/miss. Change it to use room preset config value. --- pkg/service/roomallocator.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/service/roomallocator.go b/pkg/service/roomallocator.go index 4c081dda6..bcb2fd124 100644 --- a/pkg/service/roomallocator.go +++ b/pkg/service/roomallocator.go @@ -213,12 +213,11 @@ func (r *StandardRoomAllocator) applyNamedRoomConfiguration(req *livekit.CreateR clone := utils.CloneProto(req) - // Request overwrites conf if clone.EmptyTimeout == 0 { clone.EmptyTimeout = conf.EmptyTimeout } if clone.DepartureTimeout == 0 { - clone.DepartureTimeout = req.DepartureTimeout + clone.DepartureTimeout = conf.DepartureTimeout } if clone.MaxParticipants == 0 { clone.MaxParticipants = conf.MaxParticipants