Send the correct room closed reason to clients (#2901)

* Send the correct room closed reason to clients

* update go mod
This commit is contained in:
David Zhao
2024-08-01 19:40:06 -07:00
committed by GitHub
parent 1993c87fd8
commit b1fbca066f
4 changed files with 18 additions and 13 deletions
+1 -1
View File
@@ -791,7 +791,7 @@ func (r *Room) CloseIfEmpty() {
r.lock.Unlock()
if elapsed >= int64(timeout) {
r.Close(types.ParticipantCloseReasonNone)
r.Close(types.ParticipantCloseReasonRoomClosed)
}
}