Closedown
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user