EvoluxBR/greenswitch

Wildcard handlers are only called if there are no event handlers

Otoru opened this issue · 0 comments

Otoru commented

When registering a handler for any event ("*") they are only called when I don't have any handler associated with that event type.

I believe this is due to the code below:

if not handlers and '*' in self.event_handlers:

Is this expected?