Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Fix YP not being fired post-merges

Gabe Kangas4492c39a9a9e
diff --git a/core/streamState.go b/core/streamState.go
index e16d0ac8fc..6531091c90 100644
--- a/core/streamState.go
+++ b/core/streamState.go
@@ -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() {
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)