CC-4321: NowPlaying: Cancelling Webstream has no effect and results in OnAir being grayed out
-set DbEnds to 1 second in the past when cancelling stream
This commit is contained in:
parent
f9dca67376
commit
79b6d13c16
2 changed files with 5 additions and 2 deletions
|
@ -660,9 +660,12 @@ class Application_Model_Scheduler
|
|||
$cueOutSec = bcadd($cueinSec , $length, 6);
|
||||
$cueout = Application_Common_DateHelper::secondsToPlaylistTime($cueOutSec);
|
||||
|
||||
//Set DbEnds - 1 second because otherwise there can be a timing issue
|
||||
//when sending the new schedule to Pypo where Pypo thinks the track is still
|
||||
//playing.
|
||||
$removedItem->setDbCueOut($cueout)
|
||||
->setDbClipLength($cliplength)
|
||||
->setDbEnds($this->nowDT)
|
||||
->setDbEnds($this->nowDT->sub(new DateInteval("PT1S")))
|
||||
->save($this->con);
|
||||
} else {
|
||||
$removedItem->delete($this->con);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue