Closedown

This commit is contained in:
gac-S_Changer
2017-03-29 15:49:24 +02:00
parent dc9c091e29
commit d10c106cee

View File

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