Skip to content

Commit

Permalink
Increase timeout for hls client
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed May 5, 2024
1 parent 4c3de3b commit 06d8503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/hls/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 06d8503

Please sign in to comment.