Skip to content

Commit

Permalink
fix: remove script callbacks in ordered_callbacks_map
Browse files Browse the repository at this point in the history
  • Loading branch information
v0xie committed Apr 1, 2024
1 parent 7192961 commit a669b8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/script_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,9 @@ def remove_current_script_callbacks():
for callback_list in callback_map.values():
for callback_to_remove in [cb for cb in callback_list if cb.script == filename]:
callback_list.remove(callback_to_remove)
for ordered_callbacks_list in ordered_callbacks_map.values():
for callback_to_remove in [cb for cb in ordered_callbacks_list if cb.script == filename]:
ordered_callbacks_list.remove(callback_to_remove)


def remove_callbacks_for_function(callback_func):
Expand Down

0 comments on commit a669b8a

Please sign in to comment.