Increase timeout for hls client

This commit is contained in:
Alex X
2024-05-05 12:32:18 +03:00
parent 4c3de3bbf4
commit 06d8503fd0

View File

@@ -88,7 +88,7 @@ func (r *reader) RoundTrip(_ *http.Request) (*http.Response, error) {
}
func (r *reader) getSegment() ([]byte, error) {
for i := 0; i < 5; i++ {
for i := 0; i < 10; i++ {
if r.playlist == nil {
if wait := time.Second - time.Since(r.lastTime); wait > 0 {
time.Sleep(wait)