Skip to content

Fix bug where listener is removed during trigger#5

Open
christianbundy wants to merge 1 commit into
dominictarr:masterfrom
christianbundy:fix-rm
Open

Fix bug where listener is removed during trigger#5
christianbundy wants to merge 1 commit into
dominictarr:masterfrom
christianbundy:fix-rm

Conversation

@christianbundy
Copy link
Copy Markdown

Problem: If you remove a listener while the trigger is running, you'll
get a "listeners[i] is not a funcion" error.

Solution: Ensure that listeners[i] is a function before trying to run
it.

Fixes: #4


I think this module should probably be forked into some org. SSBC? FlumeDB?

Problem: If you remove a listener while the trigger is running, you'll
get a "listeners[i] is not a funcion" error.

Solution: Ensure that `listeners[i]` is a function before trying to run
it.

Fixes: dominictarr#4
@mixmix
Copy link
Copy Markdown

mixmix commented Jun 18, 2020

This fix is published as a spicy fork obz
Source live here: https://github.com/ssbc/obz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: listeners[i] is not a function

2 participants