mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 23:18:40 +00:00
Only attempt stopping PluginManagers looping call if it's running.
This commit is contained in:
parent
a24738a9ff
commit
e0735cf5ca
2 changed files with 4 additions and 2 deletions
|
@ -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()
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue