we should be checking if the new hook has a higher priority

This commit is contained in:
jesopo 2019-07-30 15:12:29 +01:00
parent ff0cc59507
commit b145e664e1

View file

@ -150,7 +150,7 @@ class EventRoot(object):
hook_position = 0 hook_position = 0
for i, other_hook in enumerate(hook_array): for i, other_hook in enumerate(hook_array):
if other_hook.priority > new_hook.priority: if new_hook.priority > other_hook.priority:
hook_position = i hook_position = i
break break