1
0
Fork 0
mirror of https://github.com/owncast/owncast.git synced 2024-10-28 01:59:38 +01:00

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
}