Skip to content

onabort callback for HTTPLoader is called twice

Vinay Rosenberg requested to merge github/fork/bbc/abandonRequestsBug into development

Created by: robertbryer

When the AbandonRequestRule calls abandon on a segment load, it enqueues two segment replacement requests in ScheduleController (and re-loads the same segment at the lower quality twice). This is because the onAbort callback for HTTPLoader is called twice, once through the XHRLoader with x.loader.abort(x), and again on x.onabort().

So this PR removes the second x.onabort call.

Merge request reports