diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2019-05-03 13:50:07 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2019-05-03 14:57:30 +0100 |
commit | 615500e6e60fa01b35defdf80a7af02ba076dc23 (patch) | |
tree | 212c50e6d8a306a613d4e388bc9a166d56b4290f /deluge | |
parent | 1425fe5413ef5330bf7dfaae445303b632bb454d (diff) | |
download | deluge-615500e6e60fa01b35defdf80a7af02ba076dc23.tar.gz deluge-615500e6e60fa01b35defdf80a7af02ba076dc23.tar.bz2 deluge-615500e6e60fa01b35defdf80a7af02ba076dc23.zip |
[Plugins] Fix missing deregister for JSON
Diffstat (limited to 'deluge')
-rw-r--r-- | deluge/plugins/pluginbase.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deluge/plugins/pluginbase.py b/deluge/plugins/pluginbase.py index a17ae2d81..e80199df1 100644 --- a/deluge/plugins/pluginbase.py +++ b/deluge/plugins/pluginbase.py @@ -74,6 +74,9 @@ class WebPluginBase(PluginBase): component.get('JSON').register_object(self, plugin_name.lower()) log.debug('WebPlugin initialized..') + def __del__(self): + component.get('JSON').deregister_object(self) + def enable(self): pass |