spdif: Call end chan when process exit
This commit is contained in:
parent
b22259c423
commit
7c0d1a8ca5
@ -118,6 +118,7 @@ func (s *SPDIFSource) Enable() error {
|
||||
}
|
||||
pipeW.Close()
|
||||
|
||||
s.endChan <- true
|
||||
s.processRec = nil
|
||||
}()
|
||||
|
||||
@ -131,7 +132,6 @@ func (s *SPDIFSource) Disable() error {
|
||||
if s.processPlay != nil && s.processPlay.Process != nil {
|
||||
s.processPlay.Process.Kill()
|
||||
}
|
||||
s.endChan <- true
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user