From: Clifford Wolf Date: Mon, 6 Feb 2017 20:41:26 +0000 (+0100) Subject: Fix bug in job.terminate() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdb8321069aab5d100e9ce51b07139b71916ffc8;p=SymbiYosys.git Fix bug in job.terminate() --- 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):