mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-19 22:58:30 +00:00
Only deregister component if registry still exists
This commit is contained in:
parent
f75ec9d484
commit
cf891125e6
@ -99,6 +99,7 @@ class Component(object):
|
|||||||
_ComponentRegistry.register(self)
|
_ComponentRegistry.register(self)
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
|
if _ComponentRegistry:
|
||||||
_ComponentRegistry.deregister(self)
|
_ComponentRegistry.deregister(self)
|
||||||
|
|
||||||
def _component_start_timer(self):
|
def _component_start_timer(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user