Fix segv
continuous-integration/drone/push Build is passing Details

This commit is contained in:
nemunaire 2023-11-16 00:17:29 +01:00
parent 9926248109
commit 4891d5f7b7
1 changed files with 3 additions and 1 deletions

View File

@ -77,7 +77,9 @@ func (s *SPDIFSource) Enable() error {
go func() {
err := s.processPlay.Wait()
if err != nil {
s.processPlay.Process.Kill()
if s.processPlay != nil && s.processPlay.Process != nil {
s.processPlay.Process.Kill()
}
pipeR.Close()
pipeW.Close()
}