Fix segv
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2023-11-16 00:17:29 +01:00
parent 9926248109
commit 4891d5f7b7

View File

@ -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()
}