Alternative fix for re-enabling plugin issue
This commit is contained in:
parent
6d2e88eeee
commit
9053280e14
|
@ -101,7 +101,7 @@ class Component(object):
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
if _ComponentRegistry:
|
if _ComponentRegistry:
|
||||||
_ComponentRegistry.deregister(self)
|
_ComponentRegistry.deregister(self)
|
||||||
|
|
||||||
def _component_start_timer(self):
|
def _component_start_timer(self):
|
||||||
if hasattr(self, "update"):
|
if hasattr(self, "update"):
|
||||||
self._component_timer = LoopingCall(self.update)
|
self._component_timer = LoopingCall(self.update)
|
||||||
|
@ -150,7 +150,7 @@ class Component(object):
|
||||||
self._component_stopping_deferred = None
|
self._component_stopping_deferred = None
|
||||||
log.error(result)
|
log.error(result)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
if self._component_state != "Stopped" and self._component_state != "Stopping":
|
if self._component_state != "Stopped" and self._component_state != "Stopping":
|
||||||
if hasattr(self, "stop"):
|
if hasattr(self, "stop"):
|
||||||
self._component_state = "Stopping"
|
self._component_state = "Stopping"
|
||||||
|
@ -205,6 +205,18 @@ class Component(object):
|
||||||
d.addCallback(on_stop)
|
d.addCallback(on_stop)
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
def start(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def stop(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def update(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def shutdown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
class ComponentRegistry(object):
|
class ComponentRegistry(object):
|
||||||
"""
|
"""
|
||||||
The ComponentRegistry holds a list of currently registered
|
The ComponentRegistry holds a list of currently registered
|
||||||
|
|
Loading…
Reference in New Issue