Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

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

Gabe Kangas1f85048e647d
diff --git a/metrics/viewers.go b/metrics/viewers.go
index 511745a55c..e613784037 100644
--- a/metrics/viewers.go
+++ b/metrics/viewers.go
@@ -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
}