mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-01-07 09:19:58 +01:00
Fix cleaning up sink pipes
This commit is contained in:
parent
56f30cf1ab
commit
47fc725c71
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue