we should be checking if the new hook has a higher priority
This commit is contained in:
parent
ff0cc59507
commit
b145e664e1
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ class EventRoot(object):
|
|||
|
||||
hook_position = 0
|
||||
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
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in a new issue