mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 03:24:54 +00:00
[Core] Fix potential "dictionary changed size during iteration" on shutdown
This commit is contained in:
parent
20afc31f3c
commit
ed4bc5fa17
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue