From 50dd9203093cf3aeaf27af8a97ded1cd4c848011 Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Wed, 29 Mar 2017 16:53:40 +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 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]