Skip to content

Commit

Permalink
fix: remove problematic listener removal (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
kschrief authored Sep 27, 2024
1 parent ce68d02 commit 4746ea8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions languages/javascript/src/shared/Events/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})
Expand Down

0 comments on commit 4746ea8

Please sign in to comment.