Clear current broadcaster on stream end. Closes #285

This commit is contained in:
Gabe Kangas 2020-10-24 14:58:34 -07:00
parent de40da1cf0
commit 32c7e3fa34

View File

@ -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