Explicitly set viewer count to 0 if offline. Closes #3830

This commit is contained in:
Gabe Kangas 2024-09-26 13:38:14 -07:00
parent dcb0ff5f51
commit ef66e2c3a0

View file

@ -31,6 +31,7 @@ func startViewerCollectionMetrics() {
func collectViewerCount() {
// Don't collect metrics for viewers if there's no stream active.
if !core.GetStatus().Online {
activeViewerCount.Set(0)
return
}