diff --git a/src/streaming/rules/scheduling/NextFragmentRequestRule.js b/src/streaming/rules/scheduling/NextFragmentRequestRule.js index aa34074a09..88a1429143 100644 --- a/src/streaming/rules/scheduling/NextFragmentRequestRule.js +++ b/src/streaming/rules/scheduling/NextFragmentRequestRule.js @@ -85,14 +85,13 @@ function NextFragmentRequestRule(config) { while (request && streamProcessor.getFragmentModel().isFragmentLoaded(request)) { if (request.action === FragmentRequest.ACTION_COMPLETE) { request = null; - streamProcessor.setIndexHandlerTime(NaN); break; } request = adapter.getNextFragmentRequest(streamProcessor, representationInfo); } - if (request ) { + if (request) { streamProcessor.setIndexHandlerTime(request.startTime + request.duration); request.delayLoadingTime = new Date().getTime() + scheduleController.getTimeToLoadDelay(); }