Merge branch 'cc-5709-airtime-analyzer-cloud-storage' into cc-5709-airtime-analyzer-cloud-storage-saas

This commit is contained in:
drigato 2014-12-15 12:49:41 -05:00
commit aabe3799b1
1 changed files with 2 additions and 2 deletions

View File

@ -48,11 +48,11 @@ class PypoLiquidsoap():
def handle_file_type(self, media_item):
"""
Wait maximum 5 seconds (50 iterations) for file to become ready,
Wait 200 seconds (2000 iterations) for file to become ready,
otherwise give up on it.
"""
iter_num = 0
while not media_item['file_ready'] and iter_num < 50:
while not media_item['file_ready'] and iter_num < 2000:
time.sleep(0.1)
iter_num += 1