Closedown

This commit is contained in:
gac-S_Changer
2017-03-29 15:34:07 +02:00
parent 111acb8bf0
commit df39058f8f

View File

@@ -386,7 +386,7 @@ class RobotTCP(TcpDevice, Stoppable):
self.task_create(program, *args, **kwargs)
def stop_task(self):
for task in (self.high_level_tasks + [current_task]):
for task in (self.high_level_tasks + [self.current_task]):
if (task is not None) and (self.get_task_status(task)[0]>=0):
self.task_kill(task)