paed01/bpmn-engine

Removing wrong event listener in the case of an error.

Closed this issue · 3 comments

Hello. I was reading the code and realise that it should be removing the event listener for onEvent rather than onError.

engine.removeListener(eventName, onError);

You are absolutely right! Silly mistake.

No problem. Want me to PR?

@allain your version is published. I added some tests to make sure it won't happen again.