CC-4404: restart airtime-liquidsoap will interrupt the output stream and never resume until restart playout engine

-fixed
This commit is contained in:
Martin Konecny 2012-09-14 19:01:21 -04:00
parent be80eeb5fd
commit c0f3395a61
2 changed files with 7 additions and 0 deletions

View File

@ -105,6 +105,8 @@ class PypoFetch(Thread):
elif command == 'disconnect_source':
self.logger.info("disconnect_on_source show command received...")
self.disconnect_source(self.logger, self.telnet_lock, m['sourcename'])
else:
self.logger.info("Unknown command: %s" % command)
# update timeout value
if command == 'update_schedule':

View File

@ -68,6 +68,9 @@ class PypoMessageHandler(Thread):
if command == 'update_schedule':
self.logger.info("Updating schdule...")
self.pypo_queue.put(message)
elif command == 'reset_liquidsoap_bootstrap':
self.logger.info("Resetting bootstrap vars...")
self.pypo_queue.put(message)
elif command == 'update_stream_setting':
self.logger.info("Updating stream setting...")
self.pypo_queue.put(message)
@ -90,6 +93,8 @@ class PypoMessageHandler(Thread):
self.recorder_queue.put(message)
elif command == 'cancel_recording':
self.recorder_queue.put(message)
else:
self.logger.info("Unknown command: %s" % command)
except Exception, e:
self.logger.error("Exception in handling RabbitMQ message: %s", e)