Dependent participants should not trigger count towards FirstJoinedAt (#3448)

* Dependent participants should not trigger count towards FirstJoinedAt

According to the API, empty timeout should be honored as long as no
independent participant joins the room. If we counted Agents and Egress
as part of FirstJoinedAt, it would have the side effect of using
departureTimeout instead of emptyTimeout for idle calculations.

* use Room logger
This commit is contained in:
David Zhao
2025-02-20 00:57:40 -06:00
committed by GitHub
parent 3167266495
commit 1c69a9eeed
2 changed files with 14 additions and 5 deletions
+4 -1
View File
@@ -197,7 +197,10 @@ func (r *RoomManager) CloseIdleRooms() {
r.lock.RUnlock()
for _, room := range rooms {
room.CloseIfEmpty()
reason := room.CloseIfEmpty()
if reason != "" {
room.Logger.Infow("closing idle room", "reason", reason)
}
}
}