Only deregister component if registry still exists
This commit is contained in:
parent
f75ec9d484
commit
cf891125e6
|
@ -99,7 +99,8 @@ class Component(object):
|
|||
_ComponentRegistry.register(self)
|
||||
|
||||
def __del__(self):
|
||||
_ComponentRegistry.deregister(self)
|
||||
if _ComponentRegistry:
|
||||
_ComponentRegistry.deregister(self)
|
||||
|
||||
def _component_start_timer(self):
|
||||
if hasattr(self, "update"):
|
||||
|
|
Loading…
Reference in New Issue