Only attempt stopping PluginManagers looping call if it's running.
This commit is contained in:
parent
a24738a9ff
commit
e0735cf5ca
|
@ -172,7 +172,8 @@ class ComponentRegistry:
|
|||
try:
|
||||
self.components[component].shutdown()
|
||||
except Exception, e:
|
||||
log.debug("Unable to call shutdown(): %s", e)
|
||||
log.debug("Unable to call shutdown()")
|
||||
log.exception(e)
|
||||
|
||||
|
||||
_ComponentRegistry = ComponentRegistry()
|
||||
|
|
|
@ -65,6 +65,7 @@ class PluginManager(deluge.pluginmanagerbase.PluginManagerBase,
|
|||
# Disable all enabled plugins
|
||||
self.disable_plugins()
|
||||
# Stop the update timer
|
||||
if self.update_timer.running:
|
||||
self.update_timer.stop()
|
||||
|
||||
def shutdown(self):
|
||||
|
|
Loading…
Reference in New Issue