mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 04:40:37 +03:00
Increase the time between broadcast started and when we are marked as online
This commit is contained in:
parent
ccf556eb39
commit
5fe9955f26
1 changed files with 2 additions and 2 deletions
|
@ -67,9 +67,9 @@ func IsStreamConnected() bool {
|
|||
}
|
||||
|
||||
// Kind of a hack. It takes a handful of seconds between a RTMP connection and when HLS data is available.
|
||||
// So account for that with an artificial buffer of three segments.
|
||||
// So account for that with an artificial buffer of four segments.
|
||||
timeSinceLastConnected := time.Since(_stats.LastConnectTime).Seconds()
|
||||
if timeSinceLastConnected < float64(config.Config.GetVideoSegmentSecondsLength()*3.0) {
|
||||
if timeSinceLastConnected < float64(config.Config.GetVideoSegmentSecondsLength()*4.0) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue