This commit is contained in:
parent
9926248109
commit
4891d5f7b7
@ -77,7 +77,9 @@ func (s *SPDIFSource) Enable() error {
|
|||||||
go func() {
|
go func() {
|
||||||
err := s.processPlay.Wait()
|
err := s.processPlay.Wait()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.processPlay.Process.Kill()
|
if s.processPlay != nil && s.processPlay.Process != nil {
|
||||||
|
s.processPlay.Process.Kill()
|
||||||
|
}
|
||||||
pipeR.Close()
|
pipeR.Close()
|
||||||
pipeW.Close()
|
pipeW.Close()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user