forked from platypush/platypush
Fixed events being triggered as priority even if they had no preset priority
This commit is contained in:
parent
bad5ff339f
commit
2871583c75
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class EventProcessor(object):
|
||||||
|
|
||||||
if hook.priority > max_prio:
|
if hook.priority > max_prio:
|
||||||
priority_hooks = set((hook,))
|
priority_hooks = set((hook,))
|
||||||
elif hook.priority == max_prio:
|
elif hook.priority == max_prio and max_prio > 0:
|
||||||
priority_hooks.add(hook)
|
priority_hooks.add(hook)
|
||||||
|
|
||||||
matched_hooks.update(priority_hooks)
|
matched_hooks.update(priority_hooks)
|
||||||
|
|
Loading…
Reference in a new issue