From 9053280e148799c6422ce88a6ffd7cf7ec4ef4da Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 28 Feb 2012 13:34:51 +0000 Subject: [PATCH] Alternative fix for re-enabling plugin issue --- deluge/component.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/deluge/component.py b/deluge/component.py index 0f6f7e50b..538d2f9f6 100644 --- a/deluge/component.py +++ b/deluge/component.py @@ -101,7 +101,7 @@ class Component(object): def __del__(self): if _ComponentRegistry: _ComponentRegistry.deregister(self) - + def _component_start_timer(self): if hasattr(self, "update"): self._component_timer = LoopingCall(self.update) @@ -150,7 +150,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" @@ -205,6 +205,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