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