mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +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):
|
def on_stopped(result):
|
||||||
return DeferredList(
|
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)
|
return self.stop(list(self.components)).addCallback(on_stopped)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue