Avoid to DDOS the server, querying infinite time per second a blank page is maybe too much, useless and dangerous

This commit is contained in:
Yohann D'ANELLO 2020-10-13 17:57:38 +02:00
parent e154fe1a1e
commit a6fd1344bc
2 changed files with 2 additions and 2 deletions

View File

@ -7,6 +7,6 @@ function refreshViewersCounter(streamID, period) {
.catch(console.log)
setTimeout(() => {
refreshViewersCounter(period)
refreshViewersCounter(streamID, period)
}, period)
}

View File

@ -50,7 +50,7 @@
// Wait a bit before pulling viewers counter for the first time
setTimeout(() => {
refreshViewersCounter({{.Path}}, {{.Cfg.ViewersCounterRefreshPeriod}})
refreshViewersCounter("{{.Path}}", {{.Cfg.ViewersCounterRefreshPeriod}})
}, 1000)
</script>
{{end}}