Skip to content

Commit

Permalink
msgconv/media: fix chunked video downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Sep 15, 2024
1 parent c24c3d4 commit d777310
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/msgconv/media.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ func (cvd *chunkedVideoDownloader) Read(p []byte) (n int, err error) {
if errors.Is(err, io.EOF) {
_ = cvd.inFlightRequest.Close()
cvd.inFlightRequest = nil
if cvd.offset < cvd.totalSize {
err = nil
}
}
return
}
Expand Down

0 comments on commit d777310

Please sign in to comment.