diff --git a/script/RobotTCP.py b/script/RobotTCP.py index b2f924f..e1bf37d 100644 --- a/script/RobotTCP.py +++ b/script/RobotTCP.py @@ -386,7 +386,7 @@ class RobotTCP(TcpDevice, Stoppable): self.task_create(program, *args, **kwargs) def stop_task(self): - for task in (self.high_level_tasks + [current_task]): + for task in (self.high_level_tasks + [self.current_task]): if (task is not None) and (self.get_task_status(task)[0]>=0): self.task_kill(task)