Fix issue where plugins would try to be stopped after they have been

deregistered
This commit is contained in:
Andrew Resch 2010-03-22 19:59:11 -07:00
parent a93bbc35a1
commit 52ea19249c
1 changed files with 2 additions and 1 deletions

View File

@ -261,6 +261,7 @@ class ComponentRegistry(object):
deferreds = [] deferreds = []
for name in names: for name in names:
if name in self.components:
deferreds.append(self.components[name]._component_stop()) deferreds.append(self.components[name]._component_stop())
return DeferredList(deferreds) return DeferredList(deferreds)