From bdb8321069aab5d100e9ce51b07139b71916ffc8 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 6 Feb 2017 21:41:26 +0100 Subject: [PATCH] Fix bug in job.terminate() --- sbysrc/sby_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbysrc/sby_core.py b/sbysrc/sby_core.py index b822343..01723d3 100644 --- a/sbysrc/sby_core.py +++ b/sbysrc/sby_core.py @@ -335,7 +335,7 @@ class SbyJob: return self.models[model_name] def terminate(self, timeout=False): - for task in self.tasks_running: + for task in list(self.tasks_running): task.terminate(timeout=timeout) def update_status(self, new_status): -- 2.30.2