Fixed events being triggered as priority even if they had no preset priority

This commit is contained in:
Fabio Manganiello 2018-01-07 17:10:54 +01:00
parent bad5ff339f
commit 2871583c75

View file

@ -40,7 +40,7 @@ class EventProcessor(object):
if hook.priority > max_prio:
priority_hooks = set((hook,))
elif hook.priority == max_prio:
elif hook.priority == max_prio and max_prio > 0:
priority_hooks.add(hook)
matched_hooks.update(priority_hooks)