From ed4bc5fa17ec50069c9173fda6efdc801c8b14a6 Mon Sep 17 00:00:00 2001 From: Anders Jensen Date: Sun, 3 Nov 2019 16:02:37 +0100 Subject: [PATCH] [Core] Fix potential "dictionary changed size during iteration" on shutdown --- deluge/component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/component.py b/deluge/component.py index c7ba83d91..28e663344 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)