mirror of
https://git.deluge-torrent.org/deluge
synced 2025-09-06 01:55:36 +00:00
Fix issue where plugins would try to be stopped after they have been
deregistered
This commit is contained in:
parent
a93bbc35a1
commit
52ea19249c
1 changed files with 2 additions and 1 deletions
|
@ -261,7 +261,8 @@ class ComponentRegistry(object):
|
||||||
deferreds = []
|
deferreds = []
|
||||||
|
|
||||||
for name in names:
|
for name in names:
|
||||||
deferreds.append(self.components[name]._component_stop())
|
if name in self.components:
|
||||||
|
deferreds.append(self.components[name]._component_stop())
|
||||||
|
|
||||||
return DeferredList(deferreds)
|
return DeferredList(deferreds)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue