mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 11:45:44 +00:00
Alternative fix for re-enabling plugin issue
This commit is contained in:
parent
89634137b9
commit
933f80c01c
@ -99,7 +99,7 @@ class Component(object):
|
||||
def __del__(self):
|
||||
if _ComponentRegistry:
|
||||
_ComponentRegistry.deregister(self._component_name)
|
||||
|
||||
|
||||
def _component_start_timer(self):
|
||||
if hasattr(self, "update"):
|
||||
self._component_timer = LoopingCall(self.update)
|
||||
@ -148,7 +148,7 @@ class Component(object):
|
||||
self._component_stopping_deferred = None
|
||||
log.error(result)
|
||||
return result
|
||||
|
||||
|
||||
if self._component_state != "Stopped" and self._component_state != "Stopping":
|
||||
if hasattr(self, "stop"):
|
||||
self._component_state = "Stopping"
|
||||
@ -203,6 +203,18 @@ class Component(object):
|
||||
d.addCallback(on_stop)
|
||||
return d
|
||||
|
||||
def start(self):
|
||||
pass
|
||||
|
||||
def stop(self):
|
||||
pass
|
||||
|
||||
def update(self):
|
||||
pass
|
||||
|
||||
def shutdown(self):
|
||||
pass
|
||||
|
||||
class ComponentRegistry(object):
|
||||
"""
|
||||
The ComponentRegistry holds a list of currently registered
|
||||
|
@ -120,9 +120,6 @@ class Core(CorePluginBase):
|
||||
if p.wait() != 0:
|
||||
log.warn("Execute command failed with exit code %d", p.returncode)
|
||||
|
||||
def update(self):
|
||||
pass
|
||||
|
||||
def disable(self):
|
||||
self.config.save()
|
||||
event_manager = component.get("EventManager")
|
||||
|
Loading…
x
Reference in New Issue
Block a user