mirror of
https://github.com/livekit/livekit.git
synced 2026-08-29 07:39:09 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user