From 2871583c75ea1498cf19d188cff1cf0c53a10f71 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 7 Jan 2018 17:10:54 +0100 Subject: [PATCH] Fixed events being triggered as priority even if they had no preset priority --- platypush/event/processor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/event/processor/__init__.py b/platypush/event/processor/__init__.py index 6753ab8a..f9444c94 100644 --- a/platypush/event/processor/__init__.py +++ b/platypush/event/processor/__init__.py @@ -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)