Only attempt stopping PluginManagers looping call if it's running.

This commit is contained in:
Andrew Resch 2009-02-03 06:39:33 +00:00
parent a24738a9ff
commit e0735cf5ca
2 changed files with 4 additions and 2 deletions

View File

@ -172,7 +172,8 @@ class ComponentRegistry:
try: try:
self.components[component].shutdown() self.components[component].shutdown()
except Exception, e: except Exception, e:
log.debug("Unable to call shutdown(): %s", e) log.debug("Unable to call shutdown()")
log.exception(e)
_ComponentRegistry = ComponentRegistry() _ComponentRegistry = ComponentRegistry()

View File

@ -65,6 +65,7 @@ class PluginManager(deluge.pluginmanagerbase.PluginManagerBase,
# Disable all enabled plugins # Disable all enabled plugins
self.disable_plugins() self.disable_plugins()
# Stop the update timer # Stop the update timer
if self.update_timer.running:
self.update_timer.stop() self.update_timer.stop()
def shutdown(self): def shutdown(self):