Browse Source

Fix YP not being fired post-merges

pull/256/head
Gabe Kangas 5 years ago
parent
commit
5e45c53b87
  1. 6
      core/streamState.go

6
core/streamState.go

@ -25,6 +25,9 @@ func SetStreamAsConnected() { @@ -25,6 +25,9 @@ func SetStreamAsConnected() {
_stats.LastDisconnectTime = utils.NullTime{time.Now(), false}
StopCleanupTimer()
if _yp != nil {
_yp.Start()
}
segmentPath := config.PublicHLSStoragePath
if config.Config.S3.Enabled {
@ -52,6 +55,9 @@ func SetStreamAsDisconnected() { @@ -52,6 +55,9 @@ func SetStreamAsDisconnected() {
offlineFilePath := "static/" + offlineFilename
ffmpeg.StopThumbnailGenerator()
if _yp != nil {
_yp.Stop()
}
for index := range config.Config.GetVideoStreamQualities() {
playlistFilePath := fmt.Sprintf(filepath.Join(config.PrivateHLSStoragePath, "%d/stream.m3u8"), index)

Loading…
Cancel
Save