From dacdc4e4322cd3c4e80b391d4cbc7475e9ff3076 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 18 Apr 2012 15:38:47 -0400 Subject: [PATCH] CC-3672: Source switch stays connected if current show is cancelled - fixed --- airtime_mvc/application/controllers/ScheduleController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/controllers/ScheduleController.php b/airtime_mvc/application/controllers/ScheduleController.php index 0268b77e1..4b5a92320 100644 --- a/airtime_mvc/application/controllers/ScheduleController.php +++ b/airtime_mvc/application/controllers/ScheduleController.php @@ -852,7 +852,10 @@ class ScheduleController extends Zend_Controller_Action try { $scheduler = new Application_Model_Scheduler(); - $scheduler->cancelShow($id); + $scheduler->cancelShow($id); + // send kick out source stream signal to pypo + $data = array("sourcename"=>"live_dj"); + Application_Model_RabbitMq::SendMessageToPypo("disconnect_source", $data); } catch (Exception $e) { $this->view->error = $e->getMessage();