mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-08 11:13:51 +00:00
except KeyboardInterrupt
This commit is contained in:
parent
99c6b568ad
commit
62575c309d
@ -72,7 +72,10 @@ class BFGShooter(object):
|
||||
delay = planned_time - time.time()
|
||||
while th.active_count() >= self.instances:
|
||||
if delay - delay / 2 > 0:
|
||||
time.sleep(delay - delay / 2)
|
||||
try:
|
||||
time.sleep(delay - delay / 2)
|
||||
except KeyboardInterrupt:
|
||||
return None
|
||||
delay = planned_time - time.time()
|
||||
task = th.Timer(delay, self._shoot, [missile, marker])
|
||||
task.start()
|
||||
|
Loading…
Reference in New Issue
Block a user