From d59bdb00402b4052ee5eb38017359fda209389ef Mon Sep 17 00:00:00 2001 From: Neptune-1 Date: Sat, 8 Dec 2018 15:53:25 +0300 Subject: [PATCH] fixed bugs --- Drone/Client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Drone/Client.py b/Drone/Client.py index c34e7d3..54e2077 100755 --- a/Drone/Client.py +++ b/Drone/Client.py @@ -61,12 +61,13 @@ def pl_anim(): global command play_animation.read_animation_file() dtime = time_synch() - time.time() - + ok = 0 while True: if 'begin_anim' in command: t_st = int(command[command.index('('):]) - if t_st == dtime+time.time: + ok=1 + if t_st == dtime+time.time and ok==1: break if 'synch' in command: dtime=time_synch() - time.time()