mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Only deregister component if the registry still exists
This commit is contained in:
parent
ff087d133c
commit
18ebf5b912
1 changed files with 2 additions and 1 deletions
|
@ -97,7 +97,8 @@ class Component(object):
|
|||
_ComponentRegistry.register(self)
|
||||
|
||||
def __del__(self):
|
||||
_ComponentRegistry.deregister(self._component_name)
|
||||
if _ComponentRegistry:
|
||||
_ComponentRegistry.deregister(self._component_name)
|
||||
|
||||
def _component_start_timer(self):
|
||||
if hasattr(self, "update"):
|
||||
|
|
Loading…
Add table
Reference in a new issue