Closedown

This commit is contained in:
gac-S_Changer
2017-03-29 16:29:52 +02:00
parent 0f104ffaa0
commit c77f518c65

View File

@@ -410,11 +410,8 @@ class RobotTCP(TcpDevice, Stoppable):
self.task_kill(task)
def get_task(self):
if self.current_task is not None:
if self.get_task_status(self.current_task)[0]>=0:
return self.current_task
else:
self.current_task = None
if self.current_task is not None:
return self.current_task
for task in self.high_level_tasks:
if self.get_task_status(task)[0]>=0:
self.current_task = task