Skip to content

Infinite cycle with MediaHttpDownloader setContentRange download #1101

@sbespalko

Description

@sbespalko

When trying to

downloader.setContentRange(0, fileSize / 2);
downloader.download();

The process never ends, because of
mediaContentLength always is maximum content Range and expression:
if( mediaContentLength <= nextByteIndex ) { ... return; }
never give true

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions