Skip to content

Commit

Permalink
Fix nextPartIndex matching first independent part when later part has…
Browse files Browse the repository at this point in the history
… been loaded and next part is not listed

Fixes #5111
  • Loading branch information
robwalch committed Dec 20, 2022
1 parent 7dc7f64 commit bae8867
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/controller/base-stream-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -995,8 +995,9 @@ export default class BaseStreamController
break;
}
const loaded = part.loaded;
if (
!loaded &&
if (loaded) {
nextPart = -1;
} else if (
(contiguous || part.independent || independentAttrOmitted) &&
part.fragment === frag
) {
Expand Down

0 comments on commit bae8867

Please sign in to comment.