fix participant refreshing the room information after room closed (#2445)

This commit is contained in:
zesun96
2024-02-17 11:32:23 -08:00
committed by GitHub
parent 69ad8a28e4
commit 110cc83508
+1 -1
View File
@@ -469,7 +469,7 @@ func (r *RoomManager) StartSession(
}
persistRoomForParticipantCount := func(proto *livekit.Room) {
if !participant.Hidden() {
if !participant.Hidden() && !room.IsClosed() {
err = r.roomStore.StoreRoom(ctx, proto, room.Internal())
if err != nil {
logger.Errorw("could not store room", err)