From 61537c550ec0e133166cc1615cfbff7632fd975b Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Fri, 31 Aug 2012 12:49:35 -0400 Subject: [PATCH] CC-4321: NowPlaying: Cancelling Webstream has no effect and results in OnAir being grayed out -fix out of bounds error --- python_apps/pypo/pypopush.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_apps/pypo/pypopush.py b/python_apps/pypo/pypopush.py index f57a8c468..f8278d0f3 100644 --- a/python_apps/pypo/pypopush.py +++ b/python_apps/pypo/pypopush.py @@ -202,7 +202,7 @@ class PypoPush(Thread): if self.current_stream_info: - if current_event_chain[0]['type'] == "stream": + if len(current_event_chain) > 0 && current_event_chain[0]['type'] == "stream": if self.current_stream_info['uri'] != stream_chain[0]['uri']: #Liquidsoap is rebroadcasting a webstream and a webstream is scheduled #to play, but they are not the same!