CC-4915: Media-Monitor cannot handle rabbitmq restart event

-fixed
This commit is contained in:
Martin Konecny 2013-03-01 15:52:19 -05:00
parent d4891803cc
commit 2f33e99ff5
3 changed files with 33 additions and 18 deletions

View file

@ -75,7 +75,7 @@ class MM2(InstanceThread, Loggable):
airtime_receiver.new_watch({ 'directory':watch_dir }, restart=True)
else: self.logger.info("Failed to add watch on %s" % str(watch_dir))
EventDrainer(airtime_notifier.connection,
EventDrainer(airtime_notifier,
interval=float(config['rmq_event_wait']))
# Launch the toucher that updates the last time when the script was