[Plugins] Fix missing deregister for JSON

This commit is contained in:
Calum Lind 2019-05-03 13:50:07 +01:00
parent 1425fe5413
commit 615500e6e6
1 changed files with 3 additions and 0 deletions

View File

@ -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