summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Jensen <johndoee@tidalstream.org>2019-11-03 16:02:37 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2019-11-12 15:40:38 +0000
commited4bc5fa17ec50069c9173fda6efdc801c8b14a6 (patch)
treef26e8cbcea6aab15e7ebee03c3b16fc4a3ddeb60
parent20afc31f3c29b4012ad7240bdf76abb248e1c126 (diff)
downloaddeluge-ed4bc5fa17ec50069c9173fda6efdc801c8b14a6.zip
deluge-ed4bc5fa17ec50069c9173fda6efdc801c8b14a6.tar.gz
deluge-ed4bc5fa17ec50069c9173fda6efdc801c8b14a6.tar.bz2
[Core] Fix potential "dictionary changed size during iteration" on shutdown
-rw-r--r--deluge/component.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/component.py b/deluge/component.py
index c7ba83d..28e6633 100644
--- a/deluge/component.py
+++ b/deluge/component.py
@@ -448,7 +448,7 @@ class ComponentRegistry(object):
def on_stopped(result):
return DeferredList(
- [comp._component_shutdown() for comp in self.components.values()]
+ [comp._component_shutdown() for comp in list(self.components.values())]
)
return self.stop(list(self.components)).addCallback(on_stopped)