From d10c106cee9ddfbc225c7caf986f56517f60cbc1 Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Wed, 29 Mar 2017 15:49:24 +0200 Subject: [PATCH] Closedown --- script/RobotTCP.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/RobotTCP.py b/script/RobotTCP.py index 75ef08f..27b34f6 100644 --- a/script/RobotTCP.py +++ b/script/RobotTCP.py @@ -389,7 +389,7 @@ class RobotTCP(TcpDevice, Stoppable): tasks = [t for t in self.high_level_tasks] if not program in tasks: tasks.append(pro) - for task in task: + for task in tasks: if self.get_task_status(task)[0]>=0: raise Exception("Ongoing high-level task: " + task) print "Setting ", program @@ -400,7 +400,7 @@ class RobotTCP(TcpDevice, Stoppable): tasks = [t for t in self.high_level_tasks] if (self.current_task is not None) and (not self.current_task in tasks): tasks.append(pro) - for task in task: + for task in tasks: if self.get_task_status(task)[0]>=0: self.task_kill(task)