Module: deluge
Branch: master
Commit: 5945b244766f590c57e515b21ae5f9650c7b438d

Author: Andrew Resch <[email protected]>
Date:   Sat Mar 20 19:29:36 2010 -0700

Fix pluginmanagerbase using new component module

---

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

diff --git a/deluge/pluginmanagerbase.py b/deluge/pluginmanagerbase.py
index 35c551d..b2868b6 100644
--- a/deluge/pluginmanagerbase.py
+++ b/deluge/pluginmanagerbase.py
@@ -139,7 +139,7 @@ class PluginManagerBase:
                 log.exception(e)
                 continue
             instance.enable()
-            if self.get_state() == component.COMPONENT_STATE.index("Started"):
+            if self._component_state == "Started":
                 component.start(instance.plugin.get_component_name())
             plugin_name = plugin_name.replace("-", " ")
             self.plugins[plugin_name] = instance

-- 
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