mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 20:52:20 +00:00
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:
parent
e154fe1a1e
commit
a6fd1344bc
@ -7,6 +7,6 @@ function refreshViewersCounter(streamID, period) {
|
|||||||
.catch(console.log)
|
.catch(console.log)
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
refreshViewersCounter(period)
|
refreshViewersCounter(streamID, period)
|
||||||
}, period)
|
}, period)
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
|
|
||||||
// Wait a bit before pulling viewers counter for the first time
|
// Wait a bit before pulling viewers counter for the first time
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
refreshViewersCounter({{.Path}}, {{.Cfg.ViewersCounterRefreshPeriod}})
|
refreshViewersCounter("{{.Path}}", {{.Cfg.ViewersCounterRefreshPeriod}})
|
||||||
}, 1000)
|
}, 1000)
|
||||||
</script>
|
</script>
|
||||||
{{end}}
|
{{end}}
|
Loading…
Reference in New Issue
Block a user