summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyload/Core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/Core.py b/pyload/Core.py
index fe4ae566e..9588c9485 100644
--- a/pyload/Core.py
+++ b/pyload/Core.py
@@ -550,7 +550,7 @@ class Core(object):
if self.config['webinterface']['activated'] and hasattr(self, "webserver"):
self.webserver.quit()
- for thread in self.threadManager.threads:
+ for thread in list(self.threadManager.threads):
thread.put("quit")
pyfiles = self.files.cache.values()