CC-3892: Pypopush can be executed before Pypofile copying file

-temp solution
This commit is contained in:
Martin Konecny 2012-05-29 11:10:48 -04:00
parent d8ae8002d2
commit 11b52905df
1 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,9 @@ class PypoPush(Thread):
self.modify_cue_point(current_event_chain[0])
next_media_item_chain = current_event_chain
time_until_next_play = 0
#sleep for 0.2 seconds to give pypo-file time to copy. This is a quick
#fix that will be improved in 2.1.1
time.sleep(0.2)
else:
media_chain = filter(lambda item: (item["type"] == "file"), current_event_chain)
self.handle_new_media_schedule(media_schedule, liquidsoap_queue_approx, media_chain)