diff --git a/script/RobotTCP.py b/script/RobotTCP.py index a467917..9c2c79b 100644 --- a/script/RobotTCP.py +++ b/script/RobotTCP.py @@ -398,10 +398,10 @@ class RobotTCP(TcpDevice, Stoppable): tasks.append(pro) for task in tasks: if self.get_task_status(task)[0]>=0: - raise Exception("Ongoing high-level task: " + task) - self.current_task = program + raise Exception("Ongoing high-level task: " + task) self.task_create(program, *args, **kwargs) time.sleep(0.5) #get_task_status needs time + self.current_task = program def stop_task(self): tasks = [t for t in self.high_level_tasks]