Module: deluge
Branch: master
Commit: 52ea19249c62aa007e354ab4ce118dbcb4f919eb

Author: Andrew Resch <[email protected]>
Date:   Mon Mar 22 19:59:11 2010 -0700

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

---

 deluge/component.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/deluge/component.py b/deluge/component.py
index d229883..2b12de5 100644
--- a/deluge/component.py
+++ b/deluge/component.py
@@ -261,7 +261,8 @@ class ComponentRegistry(object):
         deferreds = []
 
         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)
 

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to