mirror of
https://github.com/owncast/owncast.git
synced 2024-11-24 05:38:58 +03:00
Explicitly set viewer count to 0 if offline. Closes #3830
This commit is contained in:
parent
dcb0ff5f51
commit
ef66e2c3a0
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue