Fix cleaning up sink pipes

This commit is contained in:
Nonoo 2020-10-27 14:22:08 +01:00
parent 56f30cf1ab
commit 47fc725c71

View file

@ -193,7 +193,7 @@ func (a *audioStruct) init(devName string) error {
// Cleanup previous pipes.
sinks, err := papipes.GetActiveSinks()
if err != nil {
if err == nil {
for _, i := range sinks {
if i.Filename == a.sink.Filename {
i.Close()