Skip to content

Commit

Permalink
Throw before licenseXhrSetup if key was removed
Browse files Browse the repository at this point in the history
  • Loading branch information
robwalch committed Dec 2, 2022
1 parent 14c84cf commit 6c60d57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/controller/eme-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,9 @@ class EMEController implements ComponentAPI {

return Promise.resolve()
.then(() => {
if (!keysListItem.decryptdata) {
throw new Error('Key removed');
}
return licenseXhrSetup.call(
this.hls,
xhr,
Expand Down

0 comments on commit 6c60d57

Please sign in to comment.