diff --git a/main.go b/main.go index 23b835e6..85ccd767 100755 --- a/main.go +++ b/main.go @@ -137,7 +137,7 @@ func main() { stream := rtmp.NewRtmpStream() var hlsServer *hls.Server if configure.Config.GetBool("hls") { - hlsServer := startHls() + hlsServer = startHls() } startHTTPFlv(stream) startAPI(stream)