Closedown

This commit is contained in:
gac-S_Changer
2017-03-29 16:53:40 +02:00
parent 10cf600e73
commit 50dd920309

View File

@@ -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]