[WebUI] Add missing deregister event handlers

This commit is contained in:
Calum Lind 2016-05-15 19:10:49 +01:00
parent 42e5876ebe
commit 9f187ed027
2 changed files with 5 additions and 0 deletions

View File

@ -379,6 +379,9 @@ class WebApi(JSONComponent):
self.sessionproxy = SessionProxy() self.sessionproxy = SessionProxy()
def disable(self): def disable(self):
client.deregister_event_handler("PluginEnabledEvent", self._json.get_remote_methods)
client.deregister_event_handler("PluginDisabledEvent", self._json.get_remote_methods)
if client.is_classicmode(): if client.is_classicmode():
component.get("Web.PluginManager").stop() component.get("Web.PluginManager").stop()
else: else:

View File

@ -109,6 +109,8 @@ class PluginManager(PluginManagerBase, component.Component):
Stop the plugin manager Stop the plugin manager
""" """
self.disable_plugins() self.disable_plugins()
client.deregister_event_handler("PluginEnabledEvent", self._on_plugin_enabled_event)
client.deregister_event_handler("PluginDisabledEvent", self._on_plugin_disabled_event)
def update(self): def update(self):
pass pass