Closedown

This commit is contained in:
gac-S_Changer
2017-03-29 15:51:43 +02:00
parent 2e71bdb444
commit 1abf07939a

View File

@@ -395,7 +395,8 @@ class RobotTCP(TcpDevice, Stoppable):
print "Setting ", program
self.current_task = program
self.task_create(program, *args, **kwargs)
time.sleep(0.5) #get_task_status needs time
def stop_task(self):
tasks = [t for t in self.high_level_tasks]
if (self.current_task is not None) and (not self.current_task in tasks):