Skip to content

Commit

Permalink
fix: remove extra abort call (#1528)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrums86 authored Jul 22, 2024
1 parent 7c63f4e commit 7ec606f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/segment-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ export const fixBadTimelineChange = (segmentLoader) => {
return;
}
segmentLoader.pause();
segmentLoader.abort_();
segmentLoader.resetEverything();
segmentLoader.load();
};
Expand Down
5 changes: 0 additions & 5 deletions test/segment-loader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,14 +521,10 @@ QUnit.test('fixBadTimelineChange calls pause, resetEverything and load on a segm
let pauseCalls = 0;
let resetEverythingCalls = 0;
let loadCalls = 0;
let abortCalls = 0;
let mockSegmentLoader = {
pause() {
pauseCalls++;
},
abort_() {
abortCalls++;
},
resetEverything() {
resetEverythingCalls++;
},
Expand All @@ -548,7 +544,6 @@ QUnit.test('fixBadTimelineChange calls pause, resetEverything and load on a segm
assert.equal(pauseCalls, 1, 'calls pause once');
assert.equal(resetEverythingCalls, 1, 'calls resetEverything once');
assert.equal(loadCalls, 1, 'calls load once');
assert.equal(abortCalls, 1, 'calls abort once');
});

QUnit.module('safeBackBufferTrimTime');
Expand Down

0 comments on commit 7ec606f

Please sign in to comment.