From 6c60d57dbc855cc049c19cb75ae6b91e3965dd18 Mon Sep 17 00:00:00 2001 From: Rob Walch Date: Thu, 1 Dec 2022 16:46:04 -0800 Subject: [PATCH] Throw before licenseXhrSetup if key was removed --- src/controller/eme-controller.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controller/eme-controller.ts b/src/controller/eme-controller.ts index e35f002a00d..fff0340eca7 100644 --- a/src/controller/eme-controller.ts +++ b/src/controller/eme-controller.ts @@ -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,