From 7ec606fe7a2c948f58c5cf936c3079390e344b7c Mon Sep 17 00:00:00 2001 From: Adam Waldron Date: Mon, 22 Jul 2024 09:31:33 -0700 Subject: [PATCH] fix: remove extra abort call (#1528) --- src/segment-loader.js | 1 - test/segment-loader.test.js | 5 ----- 2 files changed, 6 deletions(-) diff --git a/src/segment-loader.js b/src/segment-loader.js index b4b8b0baa..c37e180a0 100644 --- a/src/segment-loader.js +++ b/src/segment-loader.js @@ -428,7 +428,6 @@ export const fixBadTimelineChange = (segmentLoader) => { return; } segmentLoader.pause(); - segmentLoader.abort_(); segmentLoader.resetEverything(); segmentLoader.load(); }; diff --git a/test/segment-loader.test.js b/test/segment-loader.test.js index 10e136ac3..3b5063935 100644 --- a/test/segment-loader.test.js +++ b/test/segment-loader.test.js @@ -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++; }, @@ -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');