mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Explicitly set viewer count to 0 if offline. Closes #3830
This commit is contained in:
parent
dcb0ff5f51
commit
ef66e2c3a0
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user