mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-10 19:46:22 +00:00
[Core] Fix potential "dictionary changed size during iteration" on shutdown
This commit is contained in:
parent
20afc31f3c
commit
ed4bc5fa17
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user