This commit is contained in:
Nite07 2024-10-23 15:44:10 +08:00
parent bf23ae74a0
commit 1b0fb30743

View File

@ -163,6 +163,7 @@ func (s *Streamer) start() {
log.Println("case <-s.ctx.Done") log.Println("case <-s.ctx.Done")
if s.cmd != nil && s.cmd.Process != nil { if s.cmd != nil && s.cmd.Process != nil {
_ = s.cmd.Process.Kill() _ = s.cmd.Process.Kill()
s.cmd = nil
} }
case err := <-waitCmd(s.cmd): case err := <-waitCmd(s.cmd):
log.Println("case err := <-waitCmd(s.cmd)") log.Println("case err := <-waitCmd(s.cmd)")