mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
Only deregister component if registry still exists
This commit is contained in:
parent
f75ec9d484
commit
cf891125e6
1 changed files with 2 additions and 1 deletions
|
@ -99,6 +99,7 @@ class Component(object):
|
|||
_ComponentRegistry.register(self)
|
||||
|
||||
def __del__(self):
|
||||
if _ComponentRegistry:
|
||||
_ComponentRegistry.deregister(self)
|
||||
|
||||
def _component_start_timer(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue