Skip to content

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

Increase the timeout buffer so viewer count doesn't jump around when not pinging

Gabe Kangase492972caabd
diff --git a/core/stats.go b/core/stats.go
index 1398dbf0e7..4df3dc4039 100644
--- a/core/stats.go
+++ b/core/stats.go
@@ -11,8 +11,10 @@ import (
"github.com/owncast/owncast/models"
)
-var l = &sync.RWMutex{}
-var _activeViewerPurgeTimeout = time.Second * 10
+var (
+ l = &sync.RWMutex{}
+ _activeViewerPurgeTimeout = time.Second * 15
+)
func setupStats() error {
s := getSavedStats()