mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-04-08 16:03:45 +00:00
Fix cleaning up sink pipes
This commit is contained in:
parent
56f30cf1ab
commit
47fc725c71
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue