Skip to content

Commit

Permalink
pypluginmanger: re-reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
lacraig2 committed Aug 7, 2024
1 parent fad55f0 commit 1b4c51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panda/python/core/pandare/pypluginmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def unload_all(self):
Unload all PyPlugins
'''
# unload in reverse order of load time
plugin_list = {k:v for k,v in reversed(sorted(self.plugins.items(), key=lambda x: x[1].load_time))}
plugin_list = {k:v for k,v in sorted(self.plugins.items(), key=lambda x: x[1].load_time)}
while plugin_list:
name, cls = plugin_list.popitem()
self.unload(cls, do_del=False)
Expand Down

0 comments on commit 1b4c51b

Please sign in to comment.