Skip to content

Commit

Permalink
Avoid throwing cancelled task when buffer cleaning is cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
peaBerberian committed Feb 6, 2023
1 parent a673b56 commit a1d4281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/stream/representation/representation_stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export default function RepresentationStream<TSegmentDataType>(
0,
initialWantedTime - UPTO_CURRENT_POSITION_CLEANUP);
if (gcedPosition > 0) {
segmentBuffer.removeBuffer(0, gcedPosition, segmentsLoadingCanceller.signal)
segmentBuffer.removeBuffer(0, gcedPosition, globalCanceller.signal)
.catch(onFatalBufferError);
}
}
Expand Down

0 comments on commit a1d4281

Please sign in to comment.