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)
|
clone := utils.CloneProto(req)
|
||||||
|
|
||||||
// Request overwrites conf
|
|
||||||
if clone.EmptyTimeout == 0 {
|
if clone.EmptyTimeout == 0 {
|
||||||
clone.EmptyTimeout = conf.EmptyTimeout
|
clone.EmptyTimeout = conf.EmptyTimeout
|
||||||
}
|
}
|
||||||
if clone.DepartureTimeout == 0 {
|
if clone.DepartureTimeout == 0 {
|
||||||
clone.DepartureTimeout = req.DepartureTimeout
|
clone.DepartureTimeout = conf.DepartureTimeout
|
||||||
}
|
}
|
||||||
if clone.MaxParticipants == 0 {
|
if clone.MaxParticipants == 0 {
|
||||||
clone.MaxParticipants = conf.MaxParticipants
|
clone.MaxParticipants = conf.MaxParticipants
|
||||||
|
|||||||
Reference in New Issue
Block a user