prevent exiting program when close streamer

This commit is contained in:
2024-11-20 18:41:02 +08:00
parent 817bcdcefe
commit 8138c0df63
3 changed files with 16 additions and 12 deletions

View File

@@ -5,6 +5,7 @@ import (
"html/template"
"live-streamer/streamer"
"net/http"
"os"
"sync"
"time"
@@ -180,5 +181,6 @@ func (s *Server) RequestHandler(reqType RequestType) {
s.streamer.Prev()
case TypeQuit:
s.streamer.Close()
os.Exit(0)
}
}