From b1518ecf0ec4c3c56618fcbbf63330f48abf7674 Mon Sep 17 00:00:00 2001 From: kschrief Date: Fri, 27 Sep 2024 16:06:45 -0400 Subject: [PATCH] fix: remove problematic listener removal --- languages/javascript/src/shared/Events/index.mjs | 3 --- 1 file changed, 3 deletions(-) diff --git a/languages/javascript/src/shared/Events/index.mjs b/languages/javascript/src/shared/Events/index.mjs index bc458934..530f3c3f 100644 --- a/languages/javascript/src/shared/Events/index.mjs +++ b/languages/javascript/src/shared/Events/index.mjs @@ -177,9 +177,6 @@ const doListen = function(module, event, callback, context, once, internal=false resolve(listenerId) } else { - // Remove the listener from external list on failure to subscribe - // TODO: Instead of removing, the failed subscription shouldn't be put into the external list - listeners.remove(listenerId) reject(error) } })