From 8e337be181dafe43defc2be1b3a63dc14c8de68b Mon Sep 17 00:00:00 2001 From: Jonathan Lennox Date: Tue, 17 Oct 2023 15:12:44 -0400 Subject: [PATCH] Don't enqueue 'undefined' on the TransformStream if _decryptFrame fails. (#2376) --- modules/e2ee/Context.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/e2ee/Context.js b/modules/e2ee/Context.js index c221b836b2..fd03937d2b 100644 --- a/modules/e2ee/Context.js +++ b/modules/e2ee/Context.js @@ -189,7 +189,9 @@ export class Context { encodedFrame, keyIndex); - return controller.enqueue(decodedFrame); + if (decodedFrame) { + controller.enqueue(decodedFrame); + } } }