From 32c7e3fa348c8a8308ce3c1b36ecbe2c8bba1e40 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sat, 24 Oct 2020 14:58:34 -0700 Subject: [PATCH] Clear current broadcaster on stream end. Closes #285 --- core/streamState.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/streamState.go b/core/streamState.go index 353caee7d..fce11793b 100644 --- a/core/streamState.go +++ b/core/streamState.go @@ -56,6 +56,7 @@ func SetStreamAsConnected() { func SetStreamAsDisconnected() { _stats.StreamConnected = false _stats.LastDisconnectTime = utils.NullTime{time.Now(), true} + _broadcaster = nil offlineFilename := "offline.ts" offlineFilePath := "static/" + offlineFilename