CC-2847: Airtime doesn't resume playing audio after upgrade

This commit is contained in:
martin 2011-09-20 13:25:29 -04:00
parent 3601f37904
commit b94004d7f4
1 changed files with 5 additions and 4 deletions

View File

@ -355,10 +355,6 @@ class PypoFetch(Thread):
def main(self):
logger = logging.getLogger('fetch')
while not self.init_rabbit_mq():
logger.error("Error connecting to RabbitMQ Server. Trying again in few seconds")
time.sleep(5)
try: os.mkdir(self.cache_dir)
except Exception, e: pass
@ -370,6 +366,11 @@ class PypoFetch(Thread):
self.process_schedule(schedule_data, "scheduler", True)
logger.info("Bootstrap complete: got initial copy of the schedule")
while not self.init_rabbit_mq():
logger.error("Error connecting to RabbitMQ Server. Trying again in few seconds")
time.sleep(5)
loops = 1
while True:
logger.info("Loop #%s", loops)