Snapshot Python hooks during plugin unload

This commit is contained in:
2026-06-29 19:13:18 -06:00
parent 443ab58f65
commit 2b95f9724e

View File

@@ -173,7 +173,7 @@ class Plugin:
def __del__(self):
log('unloading', self.filename)
for hook in self.hooks:
for hook in list(self.hooks):
if hook.is_unload is True:
try:
hook.callback(hook.userdata)