This commit is contained in:
parent
9926248109
commit
4891d5f7b7
1 changed files with 3 additions and 1 deletions
|
@ -77,7 +77,9 @@ func (s *SPDIFSource) Enable() error {
|
|||
go func() {
|
||||
err := s.processPlay.Wait()
|
||||
if err != nil {
|
||||
if s.processPlay != nil && s.processPlay.Process != nil {
|
||||
s.processPlay.Process.Kill()
|
||||
}
|
||||
pipeR.Close()
|
||||
pipeW.Close()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue